diff --git a/src/standards/ERC1155Standard.ts b/src/standards/ERC1155Standard.ts index ff6a6dd..636d4ac 100644 --- a/src/standards/ERC1155Standard.ts +++ b/src/standards/ERC1155Standard.ts @@ -249,7 +249,7 @@ export class ERC1155Standard { .safeBatchTransferFrom(from, to, tokenIds, amounts) .estimateGas({ gas: 1000000 }); } - gas = gas * 1.1; + gas = (gas * 1.1) | 1; if (estimate) { return jc.wallet.generateGasShow(gas); } diff --git a/src/standards/ERC20Standard.ts b/src/standards/ERC20Standard.ts index a0395ec..d380b90 100644 --- a/src/standards/ERC20Standard.ts +++ b/src/standards/ERC20Standard.ts @@ -162,7 +162,7 @@ export class ERC20Standard { .transfer(to, amountBN) .estimateGas({ gas: 1000000 }); } - gas = gas * 1.1; + gas = (gas * 1.1) | 1; if (estimate) { return jc.wallet.generateGasShow(gas); } diff --git a/src/standards/ERC721Standard.ts b/src/standards/ERC721Standard.ts index 7ec8f3d..399aa3d 100644 --- a/src/standards/ERC721Standard.ts +++ b/src/standards/ERC721Standard.ts @@ -307,7 +307,7 @@ export class ERC721Standard { .safeTransferFrom(from, to, tokenId) .estimateGas({ gas: 1000000 }); } - gas = gas * 1.1; + gas = (gas * 1.1) | 1; if (estimate) { return jc.wallet.generateGasShow(gas); } diff --git a/src/standards/JCStandard.ts b/src/standards/JCStandard.ts index d79dfb0..cae7a4d 100644 --- a/src/standards/JCStandard.ts +++ b/src/standards/JCStandard.ts @@ -169,7 +169,7 @@ export class JCStandard { } return contract.methods .evolve721NFT(nftAddress, tokenIds, startTime, nonce, signature) - .send({ gas: (gas * 1.1) | 0 }); + .send({ gas }); } async evolveChip({