Skip to content

Commit

Permalink
[snarkyjs] - Fix tokenSymbol setter in test script
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Jul 15, 2022
1 parent 159c970 commit 8f6237d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/lib/snarky_js_bindings/test_module/simple-zkapp-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SimpleZkapp extends SmartContract {
});
this.balance.addInPlace(UInt64.fromNumber(initialBalance));
this.x.set(initialState);
this.self.tokenSymbol().set("TEST_TOKEN");
this.tokenSymbol.set("TEST_TOKEN");
}

update(y) {
Expand Down Expand Up @@ -188,11 +188,4 @@ console.log(
})} custom tokens`
);

console.log("----------token symbol----------");
tx = await Local.transaction(feePayer, () => {
zkapp.tokenSymbol("SHEKEL");
zkapp.sign(zkappKey);
});
sendTransaction(tx);

shutdown();

0 comments on commit 8f6237d

Please sign in to comment.