Skip to content

Commit a31abae

Browse files
committed
fix: erc20 token context setting
1 parent d7e560d commit a31abae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/engine-js/src/TokenScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export class TokenScript {
649649
throw new Error("Cannot set token context: contractName was not found")
650650
}
651651

652-
if (tokenIndex == null && tokenId){
652+
if (tokenIndex == null && tokenId == null){
653653
this.tokenContext = this.tokenMetadata[contractName];
654654
return;
655655
}

0 commit comments

Comments
 (0)