@receive

Decorator
Marks a SmartContract method that verifies receiving Assets to the SmartContract. Method must return a boolean indicating whether the SmartContract wishes to receive the transferred Assets. See the Native Assets chapter of the advanced guide for more information.
export function receive(target: any, propertyKey: string, descriptor: PropertyDescriptor): void; 
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE