Closed SheldonYS closed 3 years ago
Please follow https://github.com/virtualeconomy/v-systems/blob/master/src/main/scala/vsys/blockchain/contract/DataType.scala and add missing type.
For example, when I want to send NFT with the following code:
let function_data = [{ type: constants.ACCOUNT_ADDR_TYPE, value: "AU59JztgHbxxxxxxBakzQN2e6tr"}, { type: constants.INT32, value: 0}, ] tra.buildExecuteContractTx(public_key, nft_contract_id, 2, function_data, Date.now() * 1e6, "");
It shows result:
{ error: 123, message: 'Invalid DataEntry' }
Because there is no constants.INT32 type and corresponding converter in SDK.
constants.INT32
Please follow https://github.com/virtualeconomy/v-systems/blob/master/src/main/scala/vsys/blockchain/contract/DataType.scala and add missing type.
For example, when I want to send NFT with the following code:
It shows result:
Because there is no
constants.INT32
type and corresponding converter in SDK.