You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a transaction is sent that fails for an issue such as 'nonce too low' on Abstract testnet, an error response is returned which, when using ethers v6.13.1 will cause an error to be thrown. The ethers behavior is secondary to this issue, i mention it because the specific behavior of a package like ethers is important for developers when designing around block chain systems. This error response is not returned by anvil zksync for such a transaction when running in fork mode. When sent with an ethers signer, the normal transaction response is returned including a hash.
anvil returns a response indicating success and a txn hash rather than an error response. the transaction fails with logs:
zkSync Node Output: 17:52:02 INFO
17:52:02 INFO ⏸️ [HALTED] Hash: 0x70d4afc8055cff4b1b3bd3fe04bdbed567cef67ba1e10f14f6812e9ce661e244
17:52:02 INFO Initiator: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
17:52:02 INFO Payer: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
17:52:02 INFO Gas Limit: 100_000 | Used: 100_000 | Refunded: 0
17:52:02 INFO Paid: 0.0000084677 ETH (100000 gas * 0.08467655 gwei)
17:52:02 INFO Refunded: 0.0000000000 ETH
17:52:02 INFO
17:52:02 ERROR Error while executing transaction: Transaction HALT: Account validation error: Error function_selector = 0xe90aded4, data = 0xe90aded4000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000000000000000019
this indicates the transaction is being bailed at #
🐛 Bug Report for anvil-zksync
When a transaction is sent that fails for an issue such as 'nonce too low' on Abstract testnet, an error response is returned which, when using ethers v6.13.1 will cause an error to be thrown. The ethers behavior is secondary to this issue, i mention it because the specific behavior of a package like ethers is important for developers when designing around block chain systems. This error response is not returned by anvil zksync for such a transaction when running in fork mode. When sent with an ethers signer, the normal transaction response is returned including a hash.
🔄 Reproduction Steps
🤔 Expected Behavior
expected logs:
😯 Current Behavior
anvil returns a response indicating success and a txn hash rather than an error response. the transaction fails with logs:
this indicates the transaction is being bailed at #
anvil-zksync/crates/core/src/node/in_memory.rs
Line 1699 in fbf14a3
🖥️ Environment
cargo 1.81.0 (2dbb1af80 2024-08-20)
The text was updated successfully, but these errors were encountered: