Skip to content

Commit

Permalink
Add getter for tokenId on Party structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMinkov committed Jul 20, 2022
1 parent 92be6a4 commit 3f78945
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/party.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ class Party {
};
}

get tokenId() {
return this.body.tokenId;
}

get tokenSymbol() {
let party = this;

Expand Down
4 changes: 4 additions & 0 deletions src/lib/zkapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ class SmartContract {
return this.self.token();
}

get tokenId() {
return this.self.tokenId;
}

get tokenSymbol() {
return this.self.tokenSymbol;
}
Expand Down

0 comments on commit 3f78945

Please sign in to comment.