neo-modules icon indicating copy to clipboard operation
neo-modules copied to clipboard

Check NEP11 methods

Open Ashuaidehao opened this issue 2 years ago • 2 comments

Ashuaidehao avatar Dec 10 '22 01:12 Ashuaidehao

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.

roman-khimov avatar Dec 10 '22 07:12 roman-khimov

@Ashuaidehao @vncoelho

Basic Simple Check

if (Decimals == 0)
{
  return BalanceOf(ownerAddress);
}
else
{
  return BalanceOf(ownerAddress, tokenId);
}

cschuchardt88 avatar Mar 20 '24 07:03 cschuchardt88

close as author agrees this is not necessary

Jim8y avatar May 11 '24 02:05 Jim8y