5 报错invalid BigNumber string (argument="value", value="1e+21", code=INVALID_ARGUMENT,

一直输入超过1000就报这个错误

contAdd = this.$saleAdd;
          theCont = this.$contract(abisale, contAdd);
          let setDesNum = this.$BigNumber(this.setDesNum).times(this.numAy).toString();
          console.log(setDesNum);
          encodeABI = await theCont.methods.setDesNum(setDesNum).encodeABI();
请先 登录 后评论

4 个回答

zen
请先 登录 后评论
nono
请先 登录 后评论
影无双
请先 登录 后评论
合约开发 - 开发工程师
请先 登录 后评论
  • 2 关注
  • 0 收藏,3173 浏览
  • asdzz 提出于 2022-07-10 14:46

相似问题