Skip to content

Commit

Permalink
fix: wrong parameter type
Browse files Browse the repository at this point in the history
Signed-off-by: IvanKavaldzhiev <[email protected]>
  • Loading branch information
IvanKavaldzhiev committed Jan 8, 2024
1 parent 8042e6d commit 5e7f5ba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void ierc721MetadataTokenSymbol(String tokenName) {
var tokenNameEnum = TokenClient.TokenNameEnum.valueOf(tokenName);
var tokenId = tokenClient.getToken(tokenNameEnum).tokenId();

var response = callContract(true, StringUtils.EMPTY, ERC, IERC721_TOKEN_SYMBOL_SELECTOR, tokenId);
var response = callContract(true, StringUtils.EMPTY, ERC, IERC721_TOKEN_SYMBOL_SELECTOR, asAddress(tokenId));

assertThat(response.getResultAsText()).isEqualTo(tokenNameEnum.getSymbol());
}
Expand All @@ -134,7 +134,8 @@ public void ierc721MetadataTokenTotalSupply(String tokenName) {
.tokenId();
var totalSupplyOfNft = mirrorClient.getTokenInfo(tokenId.toString()).getTotalSupply();

var response = callContract(true, StringUtils.EMPTY, ERC, IERC721_TOKEN_TOTAL_SUPPLY_SELECTOR, tokenId);
var response =
callContract(true, StringUtils.EMPTY, ERC, IERC721_TOKEN_TOTAL_SUPPLY_SELECTOR, asAddress(tokenId));
assertThat(response.getResultAsNumber()).isEqualTo(totalSupplyOfNft);
}

Expand Down

0 comments on commit 5e7f5ba

Please sign in to comment.