Encode ERC1155 Asset
make1155Asset( )
function make1155Asset(address addr, uint120 tokenId, uint120 tokenAmount) external pure returns (struct ISwap.Asset)Make an {ISwap-Asset} struct to work with token standards.
Parameters
Name
Type
Description
addr
address
is the address of the token asset.
tokenId
uint120
is the ID of the ERC1155 token.
tokenAmount
uint120
is the amount of the ERC1155 token.
Last updated