Skip to content

Commit

Permalink
Changed rentEpoch type in AccountHeader from number to BigInt (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarishPrasannaV authored Jan 6, 2024
1 parent 8bbb100 commit 703bace
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/fluffy-carrots-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@metaplex-foundation/umi-rpc-web3js": minor
"@metaplex-foundation/umi": minor
---

Changed rentEpoch type in AccountHeader from number to BigInt
2 changes: 1 addition & 1 deletion packages/umi-rpc-web3js/src/createWeb3JsRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function parseAccount(
executable: account.executable,
owner: fromWeb3JsPublicKey(account.owner),
lamports: lamports(account.lamports),
rentEpoch: account.rentEpoch,
rentEpoch: account.rentEpoch ? BigInt(account.rentEpoch) : undefined,
publicKey,
data: new Uint8Array(account.data),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/umi/src/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type AccountHeader = {
executable: boolean;
owner: PublicKey;
lamports: SolAmount;
rentEpoch?: number;
rentEpoch?: bigint;
};

/**
Expand Down

0 comments on commit 703bace

Please sign in to comment.