Closed slashbinslashnoname closed 1 year ago
Bug in the gnodev test ?
Test is functionnal
I've tested a GRC20 token for Decimals Token :
func init() { const test1 = std.Address("g1ah79e3txw2kd2e8dscr2y2ucr888lm3qwm3v6e") minter := grc20.NewAdminToken("Slashcoin", "SLASH", 18) minter.Mint(test1, 1000000) Slashcoin = minter.GRC20() }
Test :
// check token Decimals. { got := Slashcoin.GetDecimals() t.Fatalf(" got %q.", got) expected := 18 if got != expected { t.Fatalf("expected %q, got %q.", expected, got) } }
Result of the test :
output: got '\x12'.
Expected :
output: got 18
Closing as it is not really a bug :)
Bug in the gnodev test ?
Test is functionnal
I've tested a GRC20 token for Decimals Token :
Test :
Result of the test :
Expected :