@sendUnsafe

Decorator
Marks a SmartContract method that verifies Asset transfers from the SmartContract. Method must return a boolean indicating whether the SmartContract wishes to approve sending the transferred Assets. Note that unlike @send, @sendUnsafe does not use a two-phase send. Smart contract authors must implement their own logic for safely sending assets from the contract. May be used in combination with @receive. See the Native Assets chapter of the advanced guide for more information.
export function sendUnsafe(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