Skip to content

Latest commit

 

History

History
75 lines (35 loc) · 1.93 KB

File metadata and controls

75 lines (35 loc) · 1.93 KB

Module 0x1::NFTGalleryScripts

Function accept

Init a NFTGallery for accept NFT<NFTMeta, NFTBody>

public(script) fun accept<NFTMeta: copy, drop, store, NFTBody: store>(sender: signer)
Implementation
public(script) fun accept<NFTMeta: copy + store + drop, NFTBody: store>(sender: signer) {
    NFTGallery::accept<NFTMeta, NFTBody>(&sender);
}

Function transfer

Transfer NFT<NFTMeta, NFTBody> with id from sender to receiver

public(script) fun transfer<NFTMeta: copy, drop, store, NFTBody: store>(sender: signer, id: u64, receiver: address)
Implementation
public(script) fun transfer<NFTMeta: copy + store + drop, NFTBody: store>(sender: signer, id: u64, receiver: address) {
    NFTGallery::transfer<NFTMeta, NFTBody>(&sender, id, receiver);
}

Module Specification

pragma verify = false;