Skip to content

Commit

Permalink
fix: remove 0n
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <[email protected]>
  • Loading branch information
md0x committed Jan 17, 2025
1 parent 9f09497 commit c0860cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svm/web3-v1/solanaProgramUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function stringifyCpiEvent(obj: any): any {
return obj.toString();
} else if (BN.isBN(obj)) {
return obj.toString();
} else if (typeof obj === "bigint" && obj !== 0n) {
} else if (typeof obj === "bigint") {
return obj.toString();
} else if (Array.isArray(obj) && obj.length == 32) {
return Buffer.from(obj).toString("hex"); // Hex representation for fixed-length arrays
Expand Down

0 comments on commit c0860cc

Please sign in to comment.