-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure of Solidity script on Nova while pass on other EVM chains #2773
Comments
@abhi3700 I have a hunch on this. Can you set the gas_limit from As for the |
Here is the result: Terminal output:❯ forge script ./script/lz/LZSetupNova.s.sol:LZSetupScript --private-key ${DEPLOYER_PRIVATE_KEY} --rpc-url ${NOVA_RPC_URL} --legacy --broadcast ⏎
[⠒] Compiling...
No files changed, compilation skipped
Script ran successfully.
== Logs ==
LZ Infra addresses written to ./lzsetup_addresses_nova.txt
## Setting up 1 EVM.
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
Gas limit was set in script to 125000
==========================
Chain 490000
Estimated gas price: 0.5 gwei
Estimated total gas used for script: 45427721
Estimated amount required: 0.0227138605 ETH
==========================
##
Sending transactions [0 - 31].
⠒ [00:00:00] [######################################################################>------------------------------------------] 20/32 txes (0.0s)##
Waiting for receipts.
⠙ [00:01:03] [#########################################################################################################>---] 31/32 receipts (6.7s)
##### 490000
✅ [Success]Hash: 0xd3e355135aa33a33ea0c24cdefb248855dacbf94232ccdaf10d74545ae4c5da5
Contract Address: 0xb91C2eeaA0c475115069a6ED4bc601337a22788E
Block: 5571
Paid: 0.0024027835 ETH (4805567 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x4422dba3b0fe6966fba607a6fb13307891435516f85b558f830706ec5bf538b0
Contract Address: 0xad856F238CBeafd064b80D12EadAea3981fB21B5
Block: 5571
Paid: 0.0003030225 ETH (606045 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xd3270a1f85a5b6320714ed26958160d86212683052835ab12575c232bba7232d
Block: 5571
Paid: 0.0000342595 ETH (68519 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xff37f3d8c2f26e66d9014d3da45b66516e152df5c2a8d3bf306425c0b96442de
Contract Address: 0x6eA3524AD29729b10F324fD2aF967beed9cc4E68
Block: 5571
Paid: 0.0003469685 ETH (693937 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xa03d5eb5f68f70e19a04c02e6d80efd914e0c2f11ab7523ce066697a35eb4b7b
Contract Address: 0x115f277e8fcE437B1F513A293057D2E396Ac2EC1
Block: 5571
Paid: 0.000736345 ETH (1472690 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x1012b4abd567eab94d740ff49c3ef3d54b29f29f4f9bec1757f62bb92613cca2
Contract Address: 0x71d5a92A9056aB2Ee81811aF045439e059Dd6FBc
Block: 5572
Paid: 0.0020693915 ETH (4138783 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x45ffcc0d127fcda253289d0b9265496560f9935686ba0b5d0870e22ce42bddb3
Contract Address: 0xaDB5683bF6699D6F86f296957af5971648e855A6
Block: 5572
Paid: 0.001084465 ETH (2168930 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x23272a449a58b575b5cb6d383bfe158bdffd641b2a61442ea60f0d987236af51
Block: 5572
Paid: 0.000056742 ETH (113484 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x8506b0e4ea9cd3df18a2828099c70b40fcc7d28d38e9ae9a7d598871512a6322
Contract Address: 0xC530e4cD4933357da902577E78cC7C65C5759e0C
Block: 5573
Paid: 0.001269175 ETH (2538350 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x054b587e679082e62d4b00f8c149d41246e1ecb28665a6f9990f8489a548215e
Contract Address: 0xcd13A508cF33C8aB8920b74B7280829c86F42e5f
Block: 5573
Paid: 0.000203909 ETH (407818 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xb7afbf5ee0df78d9eaefd88dfbc145aad4e63a2dbb7142a0c99dd75ee6fa1985
Contract Address: 0xf2D374B77db32284D79FCbf72b0d97d16D031cdf
Block: 5573
Paid: 0.00014932 ETH (298640 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xe1d07bfcd5cee9f12275e0ded51927b5170f1993642d7aa63ec2c83a8808b15e
Contract Address: 0x7b21801C4B7219BDeb3494AC98e948abBD25b2e9
Block: 5573
Paid: 0.0020513405 ETH (4102681 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xe52094f80e76d2b65e5507f90af1899877eb1a349e2683cd37b8290b2b0f1e52
Contract Address: 0xE07fd4CC631b88aD64d3782A7eCDC1D4c8382b70
Block: 5575
Paid: 0.0012669655 ETH (2533931 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x7f99e2cf1c8302ec3dd990d40b0a9aa8d8c6b981270838f817b19e41eb999bca
Contract Address: 0xc2A5734B4021f2dD0c27f949Ef84Eb5De96360E5
Block: 5575
Paid: 0.0006541705 ETH (1308341 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x5275ccaffa75f5ab9957621c74dcce81d20903108bb7ff23f913e3ea8737da2b
Block: 5575
Paid: 0.000079273 ETH (158546 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x4522d26eb41fa09ae0121abde7e20a44e3c4abc38989bb20458111bcd2b9c916
Contract Address: 0xEb7b83063a68d8a25a2c9aE5d9f3535a2e78A8E9
Block: 5575
Paid: 0.001655623 ETH (3311246 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x2c9ea770f8151412a0a20799158c5f35ea60290134ceeae14a3b914ecf2f78fb
Block: 5575
Paid: 0.000030446 ETH (60892 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x142c103191780c933cc0bd98079df6798d93ba97f43a038f0408255c2f2c59d2
Contract Address: 0x6CAa59f27B0b3b5Adc07a2b3EcB7142B3C74f424
Block: 5576
Paid: 0.000440396 ETH (880792 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xcbad67cebbf6dadd8229ec8208a8c39dac686ed5810c4217c4ffa7b9090433e8
Block: 5576
Paid: 0.000030124 ETH (60248 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x4edf7555e27e29e550a7946f618e85c9305cf0d6f241d89884ba0272b0905912
Block: 5576
Paid: 0.000030124 ETH (60248 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x22edf67247ad4f84c3810c211de835a6b9cac9005215306257b2517183b118f2
Contract Address: 0x7dEC25311108Fa879c419b15D74272D81f359170
Block: 5576
Paid: 0.001384583 ETH (2769166 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xc836953877ed1dc118b3f0201864ff83afca53367ed90a4fe7b692be9660268a
Contract Address: 0xc294b1A62E82d3f135A8F9b2f9cAEAA23fbD6Cf5
Block: 5576
Paid: 0.0005431225 ETH (1086245 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x433b28838264fa13f9e29eb80750ac5d568eb90926c483fafa6fe2eea1019715
Block: 5576
Paid: 0.0001572365 ETH (314473 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xc47d2f0dd5497674816fb824bf59c12e5774b276d1661be596a35985acd5892f
Block: 5576
Paid: 0.000026868 ETH (53736 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x6b7586eaec59d5b09944e4581e8fd9c9878188b2a5327bb0466a586b87c9fff1
Block: 5576
Paid: 0.000036898 ETH (73796 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x7c738b97d3aaaac5b4785c056982433c1e2029eaee17613083b4391506b3ebec
Block: 5576
Paid: 0.000039292 ETH (78584 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0x148c2709deaad3c2a7ed7ea339225e083dfdd94f975279683fae075fe1ce9902
Block: 5576
Paid: 0.0000536235 ETH (107247 gas * 0.5 gwei)
##### 490000
✅ [Success]Hash: 0xf00d1d5eeb0ffb07611a38515c4b23301f4491b17316470f7e4a36daf81102f9
Block: 5576
Paid: 0.00005357 ETH (107140 gas * 0.5 gwei)
Transactions saved to: /Users/abhi3700/F/coding/github_repos/subspace/subspace-evm-contracts/broadcast/LZSetupNova.s.sol/490000/run-latest.json
Sensitive values saved to: /Users/abhi3700/F/coding/github_repos/subspace/subspace-evm-contracts/cache/LZSetupNova.s.sol/490000/run-latest.json
Error:
Transaction Failure: 0xb476d2e8105afb35e6bf013492370157d634258e7db2f23ae40ece90b0be8cf0
Transaction Failure: 0x3a8e338afecc04ce10bae07b4797fba5499c2511207bce31596d266a67db93e2
Transaction Failure: 0xc42b04d565ad5683c59a5b8ba6c1567485b6a8d913c065157f000cdb24ab517f
Transaction Failure: 0x738f2bcc091193ea239ae3e227388d2df3b5f3f539d481e9128267a101171532 1st 2 txs faced And the 2nd 2 txs faced
Transaction Failure: 0xc42b04d565ad5683c59a5b8ba6c1567485b6a8d913c065157f000cdb24ab517f |
@abhi3700 have you tried deploying to Moonbeam testnet ? |
Yesterday, I had the same thought & asked @dastansam to try on Moonbeam as he was already debugging around this. Here is the result he got: Error:
Transaction Failure: 0x2b7ab99dd75fb2d3f2f9e75a14d12f9ab1f08f29726b47622948f308e4d483ae
Transaction Failure: 0x89b23ecb1a643551e4a1337b9da4c4563332e65018c6531d8c710f2d306797e7
Transaction Failure: 0x6c0ea9ccce90e5ae102afbf9a8a917ac801c1d58ad22348071624769f0170320
Transaction Failure: 0x5be443f1ac5398e4dbf4d886ef46a207ebe68db3553b22e67bd662f5ab6c2a80
Transaction Failure: 0x202060bd75e067fdd24f667c63e4e71146b9cd75f6ab2885115af4b9e0fbb9ea
Transaction Failure: 0xee3c67740b874e39ebe785c1d45b15fcb9421499fefa213c6ea89cdbd0831fcf
Transaction Failure: 0x7c58c216843f3be6c0266cb4b7a2b72fd261cab25e1f5ff5ef4886ba583cdcc3
Transaction Failure: 0x5cdec4f0718598bcf2cbd0b3e51dfa23c7e7dc9037ba756ed653a7cd5b5cbfc4
Transaction Failure: 0x1b17c9fd6748e80973210c28574a07647566d00913ed94eb0c650e8614209785
Transaction Failure: 0xc48194a919843e8f70294e4b58f9036f1726db21ac8e67f28c13427e68227d7a
Transaction Failure: 0x771ffb0f9d3341ac2e2ccc1f7059de3aec4a13111c5bca2cfe35287548680281
Transaction Failure: 0x67996e3413112502811aa22aab8e57e21ae4966179f29ae076ad3af890df1f63
Transaction Failure: 0xb003248583e12e4406274595fbefd39524c999670a4ff35c4b2ca9c45aaf5126
Transaction Failure: 0x63398c441e98a42dad4aab6a53f2b1ab7163b1603ffe48c969132cfddd6a50e3
Transaction Failure: 0x7277216efd278291ee64aa68baa65f84de83c708ebd1c34cbb9c142857122a5c
Transaction Failure: 0x29207d03c04778197c7889c49a4a7e89285f9c81451bcb41500efa438554e098 Let me try myself & share the result here in few mins. |
It succeeded on Moonbeam Alpha testnet 🎉 . I observed that the txs were being added into different blocks. It seemed like they don't wait for txs that takes more time. Simply just produce blocks with whatever txs available. Interesting! 🤔 Terminal output:❯ forge script script/lz/LZSetupMoonbeam.s.sol:LZSetupScript --rpc-url $MOONBEAM_TESTNET_RPC_URL --private-key $DEPLOYER_PRIVATE_KEY --broadcast
[⠊] Compiling...
No files changed, compilation skipped
EIP-3855 is not supported in one or more of the RPCs used.
Unsupported Chain IDs: 1287.
Contracts deployed with a Solidity version equal or higher than 0.8.20 might not work properly.
For more information, please see https://eips.ethereum.org/EIPS/eip-3855
Script ran successfully.
== Logs ==
LZ Infra addresses written to ./lzsetup_addresses_moonbeam.txt
## Setting up 1 EVM.
==========================
Chain 1287
Estimated gas price: 0.25 gwei
Estimated total gas used for script: 66904452
Estimated amount required: 0.016726113 ETH
==========================
##
Sending transactions [0 - 0].
⠁ [00:00:03] [####>--------------------------------------------------------------------------------------------------------------------------------] 1/32 txes (101.9s)##
Waiting for receipts.
⠉ [00:00:25] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x5fd4e08ba7d4bbe0fb01344d01071ef5f15c997f93c23efd3dd73eb09191ca3b
Contract Address: 0x6fa280F2b9C5c4fCDfFDDcED15BbA558208Be1b6
Block: 7237307
Paid: 0.001311840075 ETH (8072862 gas * 0.1625 gwei)
##
Sending transactions [1 - 1].
⠉ [00:00:30] [########>----------------------------------------------------------------------------------------------------------------------------] 2/32 txes (747.5s)##
Waiting for receipts.
⠉ [00:00:21] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x3344409b21574146d747fbdf338c62c054b60341ab7b51f18c439579dba1f879
Contract Address: 0x715867f2bD91673b01443c17E07750E42C18948d
Block: 7237311
Paid: 0.000158976675 ETH (978318 gas * 0.1625 gwei)
##
Sending transactions [2 - 2].
⠙ [00:00:54] [############>------------------------------------------------------------------------------------------------------------------------] 3/32 txes (691.5s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x0606293707021e1476d5881b36d75df324b69a84f9d1d9651d73a9db98d59d60
Block: 7237314
Paid: 0.0000137982 ETH (84912 gas * 0.1625 gwei)
##
Sending transactions [3 - 3].
⠚ [00:01:11] [################>--------------------------------------------------------------------------------------------------------------------] 4/32 txes (495.9s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xd5641c3ec0c41b5e6ec1bbf8b21b90fca74aa0152d791429dec175d8f3dfcc7c
Contract Address: 0xd06D8026fb9de67416d02699aB882cd2FB684552
Block: 7237317
Paid: 0.00018306405 ETH (1126548 gas * 0.1625 gwei)
##
Sending transactions [4 - 4].
⠒ [00:01:35] [####################>----------------------------------------------------------------------------------------------------------------] 5/32 txes (650.7s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x39b555937cea5f24c83065797f4db29837029a58cb9b5614b4207a8ead308ebf
Contract Address: 0xEa10E800B23313bA572C930AD1B2914538bacAd3
Block: 7237318
Paid: 0.0003970551 ETH (2443416 gas * 0.1625 gwei)
##
Sending transactions [5 - 5].
⠂ [00:02:00] [########################>------------------------------------------------------------------------------------------------------------] 6/32 txes (646.5s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xb09334562c72698ac8f678bd5a7f1d9305da30ed6c4fe2fef106b473f6861728
Contract Address: 0xB357C5421e834c57Ba6EFd4E6A52f780106c42dB
Block: 7237321
Paid: 0.00113014395 ETH (6954732 gas * 0.1625 gwei)
##
Sending transactions [6 - 6].
⠂ [00:02:18] [#############################>-------------------------------------------------------------------------------------------------------] 7/32 txes (459.7s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xe47438e28071f93a13ae44517bf76a7330d7c259242f4cf2b8133b7385d22ec6
Contract Address: 0xb072BeF71163DE808845500EC290B3FDF4A09c6B
Block: 7237324
Paid: 0.000544791 ETH (3352560 gas * 0.1625 gwei)
##
Sending transactions [7 - 7].
⠒ [00:02:42] [#################################>---------------------------------------------------------------------------------------------------] 8/32 txes (581.4s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x935041a4ed9343d232e50e93238baf82f068e156b72b7262780b2ea110ec6a7f
Block: 7237327
Paid: 0.0000738478 ETH (454448 gas * 0.1625 gwei)
##
Sending transactions [8 - 8].
⠲ [00:03:00] [#####################################>-----------------------------------------------------------------------------------------------] 9/32 txes (417.1s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x1d0a46e263b55ee6ec7009f2ad74776bbc452e48315013b2008c01e22b756ddb
Block: 7237331
Paid: 0.000106197 ETH (653520 gas * 0.1625 gwei)
##
Sending transactions [9 - 9].
⠴ [00:03:24] [#########################################>------------------------------------------------------------------------------------------] 10/32 txes (526.3s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x0d31d6ee4b69e1c265504379d10b752d65b1da9836cf4349dccd88f56c645143
Block: 7237334
Paid: 0.0000809094 ETH (497904 gas * 0.1625 gwei)
##
Sending transactions [10 - 10].
⠤ [00:03:42] [#############################################>--------------------------------------------------------------------------------------] 11/32 txes (383.6s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xea9cbb0078b0e5a167ef209de8e12245195724f326aae01312bf9bd575d2cf72
Contract Address: 0x2197983815Fbeb83D84e68C2D30E7457F673D96C
Block: 7237335
Paid: 0.000691396875 ETH (4254750 gas * 0.1625 gwei)
##
Sending transactions [11 - 11].
⠄ [00:03:59] [#################################################>----------------------------------------------------------------------------------] 12/32 txes (351.3s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x33241320965b170f000b66dc46aa74f63117d46a0c670cb7127faf20f0b608b0
Contract Address: 0x4E0C31c3e9e494FEb99b5d98406E00d2796FC4BB
Block: 7237338
Paid: 0.000103902825 ETH (639402 gas * 0.1625 gwei)
##
Sending transactions [12 - 12].
⠄ [00:04:24] [#####################################################>------------------------------------------------------------------------------] 13/32 txes (456.4s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x58ec41314ca146c5b0c2fdf363a3851e1ffe1c26e1b7c4eeb82b27cae14aca60
Contract Address: 0x49C9C06818a783bDc269DDb213FAf28FB2BC42e6
Block: 7237341
Paid: 0.000073808475 ETH (454206 gas * 0.1625 gwei)
##
Sending transactions [13 - 13].
⠤ [00:04:42] [#########################################################>--------------------------------------------------------------------------] 14/32 txes (340.4s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x81b1c80ca2e13caf095b9545f56235b9fea05c8715dc72d0e665d935a5019944
Contract Address: 0xc6Eca502Ceb598A32A2E95e18523EBFAEC45275F
Block: 7237344
Paid: 0.001121163225 ETH (6899466 gas * 0.1625 gwei)
##
Sending transactions [14 - 14].
⠠ [00:05:00] [#############################################################>----------------------------------------------------------------------] 15/32 txes (303.4s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x800bedd4d18b119fc00cf6585c11762cf6f5d623127b12a1c4ace567dc4f122e
Contract Address: 0x23db08fcD36E727faDd768133448ADC0090bB121
Block: 7237346
Paid: 0.000647088 ETH (3982080 gas * 0.1625 gwei)
##
Sending transactions [15 - 15].
⠠ [00:05:24] [##################################################################>-----------------------------------------------------------------] 16/32 txes (384.5s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xa1124aa5b1007a1016c82a85ae0f3727195e835d6b74249767b6736b278352c0
Contract Address: 0x15f4bF5029Af55514bDD7C38A072CbCC58E245d9
Block: 7237349
Paid: 0.00035221095 ETH (2167452 gas * 0.1625 gwei)
##
Sending transactions [16 - 16].
⠤ [00:05:42] [######################################################################>-------------------------------------------------------------] 17/32 txes (272.8s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x56bb1dc74f961a4acdb1f8bb3952798e5840dca2561b62a7c6307a72ed436b31
Block: 7237352
Paid: 0.0000413946 ETH (254736 gas * 0.1625 gwei)
##
Sending transactions [17 - 17].
⠦ [00:06:00] [##########################################################################>---------------------------------------------------------] 18/32 txes (254.2s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xa63e5f4b364d600b94737b11291af4b07e553b88ae3ea8b5745f58b6eedc3713
Contract Address: 0xfb196763838604824409e606968b35432A22FA63
Block: 7237355
Paid: 0.000899678325 ETH (5536482 gas * 0.1625 gwei)
##
Sending transactions [18 - 18].
⠖ [00:06:17] [##############################################################################>-----------------------------------------------------] 19/32 txes (227.5s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xb4049f1a3146c9fb926236da456d7f5a4708531bc97a0539d68ac393e4bbd766
Block: 7237358
Paid: 0.000039663 ETH (244080 gas * 0.1625 gwei)
##
Sending transactions [19 - 19].
⠒ [00:06:42] [##################################################################################>-------------------------------------------------] 20/32 txes (284.7s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xc5fd3d4c69c9cc46f7907a871369881a1253db6716bfda2d86d3a1aef4e1fdbf
Contract Address: 0xB41E81ac988cB517a98721fc17e84f934CA3aE97
Block: 7237361
Paid: 0.000234272025 ETH (1441674 gas * 0.1625 gwei)
##
Sending transactions [20 - 20].
⠐ [00:07:00] [######################################################################################>---------------------------------------------] 21/32 txes (204.8s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x6025c442f3919f7b1b0d21203d3a7caf061f22037eb5199a2249467fa05e3e77
Block: 7237364
Paid: 0.0000392444 ETH (241504 gas * 0.1625 gwei)
##
Sending transactions [21 - 21].
⠐ [00:07:24] [##########################################################################################>-----------------------------------------] 22/32 txes (241.6s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xb1492af7ab9d88b1ef69ba3f701ab46f62fb53148dd02e57527593109ba23ebb
Block: 7237367
Paid: 0.0000392444 ETH (241504 gas * 0.1625 gwei)
##
Sending transactions [22 - 22].
⠒ [00:07:42] [##############################################################################################>-------------------------------------] 23/32 txes (168.2s)##
Waiting for receipts.
⠉ [00:00:22] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x8a8ecbc3535f8790437e6a1ce15e6269a2cf95c6b9381b77f00c2e26c8f20ed8
Contract Address: 0x89DeC12E8331DB21B6af0595c3525244c578c39f
Block: 7237371
Paid: 0.000754559325 ETH (4643442 gas * 0.1625 gwei)
##
Sending transactions [23 - 23].
⠓ [00:08:07] [###################################################################################################>--------------------------------] 24/32 txes (195.6s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xc71c62a8ba44238ca61880edd576a214ee5ad070fd2fcc45fa1734935d481e31
Contract Address: 0x3F18aE7c1B8C04093588CFD6eF2b476ADf9cA605
Block: 7237374
Paid: 0.00029083275 ETH (1789740 gas * 0.1625 gwei)
##
Sending transactions [24 - 24].
⠋ [00:08:25] [#######################################################################################################>----------------------------] 25/32 txes (126.6s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x929dd8c1c8c8943a30b97e6dba3d3266620a64b28a01bc274fa6d1cf18bb34fd
Block: 7237377
Paid: 0.0000940966 ETH (579056 gas * 0.1625 gwei)
##
Sending transactions [25 - 25].
⠉ [00:08:42] [###########################################################################################################>------------------------] 26/32 txes (104.3s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xb8e52dae48994a4316459072a8d38021dd8323a54cf58104331ba2d23c97b0fd
Block: 7237380
Paid: 0.0000350116 ETH (215456 gas * 0.1625 gwei)
##
Sending transactions [26 - 26].
⠈ [00:08:59] [################################################################################################################>--------------------] 27/32 txes (87.1s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xe49e15ae4cb65ce178426f863f67dc4b5d8810dd671f80f8a357ae214356420c
Block: 7237383
Paid: 0.000035815 ETH (220400 gas * 0.1625 gwei)
##
Sending transactions [27 - 27].
⠈ [00:09:17] [####################################################################################################################>----------------] 28/32 txes (69.9s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xb7c3e366ca1baceaebe1933a88bdd4010a665aedfeb9fe6d2591feb46367b719
Block: 7237386
Paid: 0.0000511628 ETH (314848 gas * 0.1625 gwei)
##
Sending transactions [28 - 28].
⠁ [00:09:34] [########################################################################################################################>------------] 29/32 txes (52.2s)##
Waiting for receipts.
⠉ [00:00:23] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0xda1bf0259f69e98332b059a810c85bf352e6bd1740fd77c853f844612a3dab88
Block: 7237390
Paid: 0.0000528164 ETH (325024 gas * 0.1625 gwei)
##
Sending transactions [29 - 29].
⠁ [00:10:00] [############################################################################################################################>--------] 30/32 txes (49.9s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x016786fd6cac1e4fc1853867bce48499da52699990fd2f38b47c0c8e4987f795
Block: 7237393
Paid: 0.0000275288 ETH (169408 gas * 0.1625 gwei)
##
Sending transactions [30 - 30].
⠉ [00:10:17] [################################################################################################################################>----] 31/32 txes (18.4s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x85aa7a03f6955fefe2dd5c29accddc53dcbc71a4efe5b8d23349cc8e28460c82
Block: 7237396
Paid: 0.0001065246 ETH (655536 gas * 0.1625 gwei)
##
Sending transactions [31 - 31].
⠙ [00:10:35] [######################################################################################################################################] 32/32 txes (0.0s)##
Waiting for receipts.
⠉ [00:00:15] [####################################################################################################################################] 1/1 receipts (0.0s)
##### moonbase
✅ [Success]Hash: 0x7ac5525827d56c213321d2f96ded1a94123ea121fb5bebbe87f0eb5b4d4f8d9f
Block: 7237399
Paid: 0.0000820066 ETH (504656 gas * 0.1625 gwei)
==========================
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL.
Total Paid: 0.009814044825 ETH (60394122 gas * avg 0.1625 gwei)
Transactions saved to: /Users/abhi3700/F/coding/github_repos/subspace/subspace-evm-contracts/broadcast/LZSetupMoonbeam.s.sol/1287/run-latest.json
Sensitive values saved to: /Users/abhi3700/F/coding/github_repos/subspace/subspace-evm-contracts/cache/LZSetupMoonbeam.s.sol/1287/run-latest.json Sharing the broadcast details here as well for you @vedhavyas. cc @dastansam |
these are my observations/findings for the last couple of days:
I say certainly, because when you send any of those failed txs separately in a different block they get mined successfully: Failed tx details
Replaying failed tx> cast send 0xc01ee7f10ea4af4673cfff62710e1d7792aba8f3 "registerLibrary(address)" 0x21cb3940e6Ba5284E1750F1109131a8E8062b9f1 --rpc-url ws://localhost:9944 --from 0xf24ff3a9cf04c71dbc94d0b566f7a27b94566cac --value 0 --chain-id 42 --private-key 0x5fb92d6e98884f76de468fa3f6278f8807c48bebc13595d45af5bdc4da702133
blockHash 0x98fbca8cf27d797865500c0f38a30d75ed4f03787c10e3f2f97d23eb3de84b39
blockNumber 100
contractAddress
cumulativeGasUsed 435666
effectiveGasPrice 500000000
from 0xf24FF3a9CF04c71Dbc94D0b566f7A27B94566cac
gasUsed 435666
logs [{"address":"0xc01ee7f10ea4af4673cfff62710e1d7792aba8f3","topics":["0x6b374d56679ca9463f27c85c6311e2bb7fde69bf201d3da39d53f10bd9d78af5"],"data":"0x00000000000000000000000021cb3940e6ba5284e1750f1109131a8e8062b9f1","blockHash":"0x98fbca8cf27d797865500c0f38a30d75ed4f03787c10e3f2f97d23eb3de84b39","blockNumber":"0x64","transactionHash":"0xd3ff6970c9828535f45bb284b7d6fcd036a944668f8baf9b2e0c299250a526c3","transactionIndex":"0x0","logIndex":"0x0","removed":false}]
logsBloom 0x00000000000000000000000000000400000000000200000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000
root
status 1 (success)
transactionHash 0xd3ff6970c9828535f45bb284b7d6fcd036a944668f8baf9b2e0c299250a526c3
transactionIndex 0
type 2
blobGasPrice
blobGasUsed
to 0xc01Ee7f10EA4aF4673cFff62710E1D7792aBa8f3
In Nova, I was able to successfully send all txs with setting the
Without changing it, the 3-4 transactions fails. 2 with Failed tx with `OutOfGas`
Replaying tx
|
it feels like this is an expected behaviour and doesn't really mean that our EVM is improperly configured. Foundry by default simulates all the transactions and then broadcasts only the ones that don't fail the simulation. This has its limitations, as described here and here. This is why
And now, if I run the same script with
cc @vedhavyas please correct me if I am wrong |
moreover, foundry overrides gas estimation/calculation for specific chains, i.e it doesn't rely on simulation for gas limit, rather queries RPC for it. This is the reason our script doesn't fail on Moonbase alpha testnet or Moonbeam. so, basically, Frontier chains struggle with gas estimation via foundry simulation, not with |
If that's true, then we have to ensure that fix is merged with foundry's |
every relatively new version of |
I meant this in the code as you shared on Slack: /// True if the network calculates gas costs differently.
pub fn has_different_gas_calc(chain_id: u64) -> bool {
if let Some(chain) = Chain::from(chain_id).named() {
return matches!(
chain,
NamedChain::Arbitrum |
NamedChain::ArbitrumTestnet |
NamedChain::ArbitrumGoerli |
NamedChain::ArbitrumSepolia |
NamedChain::Moonbeam |
NamedChain::Moonriver |
NamedChain::Moonbase |
NamedChain::MoonbeamDev
) || chain == 490000
} |
@dastansam did the previous fix not work ? |
the previous fix will make this issue completely about |
Found an issue while running a Foundry script on Nova of Devnet (version:
2024-may-06
).The foundry script has 32 txs: (16:
CREATE
, 16:CALL
).Public
Result of running the script sending transactions to Nova Devnet (public).
Script
Command:
Initially, when I sent 32 txs using a foundry script, it got stuck (also in some cases failed due to
OutOfGas
error) & then exited after long wait. And then I found from the PolkadotJS explorer that it's waiting in Nova pool:And then on re-running the script, more txs got stuck in the same pool.
Local
I decided to try it on local Devnet Nova to see the result.
A. No gas limit set
Run LZSetup script having 32 txs (16:
CREATE
, 16:CALL
), without anygas-price
,gas-limit
flags in CLI command or in the code.Terminal output:
8/32 txs failed. All the failed txs are of
CALL
type.Attached herewith the entire broadcasted txs details:
run-latest.json
And then on Nova PolkadotJS explorer, manually located each failed txs by its block number & tx-index from corresponding tx-hash:
0x843b014790b513712d0dc0f9eaf19e16ee60bf9bfbd9fb45d931cb5daf24c339
like this:Found that all of them failed due to
OutOfGas
error except the last one that failed due toReverted
error.Terminal output:
All txs ran successfully along with verification.
Sharing the broadcast details here:
run-latest.json
B. Manual gas limit set
Run LZSetup script having 32 txs (16:
CREATE
, 16:CALL
) without anygas-price
,gas-limit
flags in CLI command, but with same100,000
(sufficient enough) asgas-limit
set in the code like.setReceiveLibrary{gas: 100000}(...)
corresponding to suspected functions (as error previously found for these functions). 2 errors:OutOfGas,
Reverted` found in this case.Terminal output:
5/32 txs failed. All the failed txs are of
CALL
type.Sharing the entire broadcast details here:
run-latest.json
Just like above, searched for the failed txs to find out the failure reason from Nova PolkadotJS Explorer. Found that the 1st 3 txs failed with
OutOfGas
error, whereas the last 2 justReverted
.The text was updated successfully, but these errors were encountered: