neo-modules
neo-modules copied to clipboard
Check NEP11 methods
Hi, neo-project/neo#1883. You can take a look at https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest/standard#CheckABI as well, it has compliance checks implemented properly.
@Ashuaidehao @vncoelho
Basic Simple Check
if (Decimals == 0)
{
return BalanceOf(ownerAddress);
}
else
{
return BalanceOf(ownerAddress, tokenId);
}
close as author agrees this is not necessary