修正发送1155时,参数数量不对的bug

This commit is contained in:
cebgcontract 2022-12-22 16:40:46 +08:00
parent 19b7e53c96
commit 416ee4c517

View File

@ -246,7 +246,7 @@ export class ERC1155Standard {
const contract = new this.web3.eth.Contract(abiERC1155, address);
if (!gas) {
gas = await contract.methods
.safeBatchTransferFrom(from, to, tokenIds, amounts)
.safeBatchTransferFrom(from, to, tokenIds, amounts, "")
.estimateGas({ gas: 1000000 });
}
gas = (gas * 1.1) | 1;
@ -254,7 +254,7 @@ export class ERC1155Standard {
return jc.wallet.generateGasShow(gas);
}
return contract.methods
.safeBatchTransferFrom(from, to, tokenIds, amounts)
.safeBatchTransferFrom(from, to, tokenIds, amounts, "")
.send({
from,
gas,