Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSW-846: feat: uint256, int256 instead of bigint #188

Merged
merged 4 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions _test/_TEST_0_INIT_VARIABLE_AND_HELPER_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ var (
// wugnotPath string = "gno.land/r/demo/wugnot" // from consts
// gnsPath string = "gno.land/r/demo/gns" // from consts

fee100 uint16 = 100
fee500 uint16 = 500
fee3000 uint16 = 3000
fee100 uint32 = 100
fee500 uint32 = 500
fee3000 uint32 = 3000

max_timeout bigint = 9999999999
max_timeout int64 = 9999999999
)

/* UTIL */
Expand All @@ -54,8 +54,6 @@ func tid(tokenId interface{}) grc721.TokenID {
}

switch tokenId.(type) {
case bigint:
return grc721.TokenID(string(tokenId.(bigint)))
case string:
return grc721.TokenID(tokenId.(string))
case int:
Expand Down
Loading