Skip to content

Commit c0860cc

Browse files
committed
fix: remove 0n
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
1 parent 9f09497 commit c0860cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/svm/web3-v1/solanaProgramUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export function stringifyCpiEvent(obj: any): any {
239239
return obj.toString();
240240
} else if (BN.isBN(obj)) {
241241
return obj.toString();
242-
} else if (typeof obj === "bigint" && obj !== 0n) {
242+
} else if (typeof obj === "bigint") {
243243
return obj.toString();
244244
} else if (Array.isArray(obj) && obj.length == 32) {
245245
return Buffer.from(obj).toString("hex"); // Hex representation for fixed-length arrays

0 commit comments

Comments
 (0)