Ethereum 错误:数字最多只能安全存储53位
我试图在仲裁中执行原始事务,但收到错误: 错误:数字最多只能安全存储53位 请帮忙 代码是Ethereum 错误:数字最多只能安全存储53位,ethereum,solidity,web3js,quorum,Ethereum,Solidity,Web3js,Quorum,我试图在仲裁中执行原始事务,但收到错误: 错误:数字最多只能安全存储53位 请帮忙 代码是 web3.eth.sendSignedTransaction(rawTx).then(function(transactionReciept,error){ if(error){ console.log("Error occured in send Function") callback(error,null,null); }else{ console.log("Trans
web3.eth.sendSignedTransaction(rawTx).then(function(transactionReciept,error){
if(error){
console.log("Error occured in send Function")
callback(error,null,null);
}else{
console.log("Transaction is successfull ",transactionReciept)
transaction = JSON.stringify(transactionReciept);
});
在做任何其他事情之前,请确保提供的气体是整数。在许多博客中,我发现这是一个块菌版本的问题。块菌v5会产生这种类型的问题。他们建议降级到truffle@4.1.15. 对我来说,情况并非如此。我继续使用块菌v5。我通过在发送交易时检查我的汽油限额来解决问题
gasLimit:web3.utils.toHex(gas\u limit),//为该事务提供的最大gas(gas limit)
我的软件包版本:
- 节点:v8.11.4
- 块菌:5.0.12
- Web3:1.0.0-beta.52
- 块菌合同:4.0.11
- 块菌接口-adapter@0.1.2
- │ └── web3@1.0.0-β.37
- └── web3@1.0.0-β.37
- Ganache cli:v6.4.3(Ganache核心:2.5.5)
- 以太坊JS tx:1.3.4
大数字
转换为一个常规数字,但内置数字太小。我猜当您试图打印交易凭证时,它会发生在控制台.log
中。您需要提供更多信息。您能发布您的合同和交易对象吗?请正确设置答案的格式,使其易于理解。