archethic-foundation / bridge

GNU Affero General Public License v3.0
1 stars 1 forks source link

Catch insufficient funds for gas * price error #61

Open redDwarf03 opened 7 months ago

redDwarf03 commented 7 months ago

Describe the problem you discovered

gasPrice=EtherAmount: 58129322022 wei, maxPriorityFeePerGas=EtherAmount: 1000000000 wei, maxFeePerGas=EtherAmount: 78505740696 wei, EVMBridgeProcessMixin - sendTransactionWithErrorManagement Event ContractMinted = FilterEvent(removed=false,logIndex=5,transactionIndex=15,transactionHash=0xed60357fc0cc1821b8ab6021c804faf7ba5e0455fb9ee2adb19304973b5fe566,blockHash=0x2cd149a4b828d5cd7c08faec79acf8bcb3a5e5f0b1db55a0ac7dd7206d8f1df2,blockNum=5302006,address=0x50b8b73327613468e5605ed59b980555daac354a,data=0x,topics=[0x8640c3cb3cba5653efe5a3766dc7a9fb9b02102a9f97fbe9ea39f0082c3bf497, 0x000000000000000000000000bb3e6a831c3abe5b241babfdc146eac1d1731f2c, 0x0000000000000000000000000000000000000000000000056bc75e2d63100000]), EVMLP - deployChargeableHTLC gasPrice=EtherAmount: 59181062812 wei, maxPriorityFeePerGas=EtherAmount: 1000000000 wei, maxFeePerGas=EtherAmount: 79908061750 wei, EVMBridgeProcessMixin - sendTransactionWithErrorManagement MetaMask - RPC Error: insufficient funds for gas * price + value: balance 73096693914490079, tx cost 88771594218000000, overshot 15674900303509921 FormatException: SyntaxError: Unexpected token 'i', "insufficie"... is not valid JSON, EVMBridgeProcessMixin - sendTransactionWithErrorManagement, dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/errors.dart 294:49 throw dart-sdk/lib/_internal/js_dev_runtime/patch/convert_patch.dart 39:5 _parseJson dart-sdk/lib/convert/json.dart 610:36 convert dart-sdk/lib/convert/json.dart 216:41 decode packages/webthree/src/core/exception_utils_js.dart 33:39 analyzeException packages/webthree/src/browser/metamask/dart_wrappers.dart 50:22 dart-sdk/lib/async/future.dart 1069:25 onError

redDwarf03 commented 7 months ago

https://github.com/devopsdao/webthree/issues/20