9

在链下调用public函数的时候,怎么给该函数传在合约内定义好的结构体参数

 3 years ago
source link: https://learnblockchain.cn/question/2504
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
在链下调用public函数的时候,怎么给该函数传在合约内定义好的结构体参数 | 登链社区 | 技术问答

在链下调用public函数的时候,怎么给该函数传在合约内定义好的结构体参数

struct Arrtibute{
        Options trait_type;
        uint256 tokenId;
        address contractAddr;
    }

// 在这个函数中如果想要在链下调用,第二个参数该怎么传呢?
function SafeMint(address to,Arrtibute[totalArrtibutes] memory arrtibutes )public virtual{
    
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK