Skip to content
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

Deploy Transactions Missing from Chain #5081

Closed
2 tasks done
antazoey opened this issue May 30, 2023 · 4 comments
Closed
2 tasks done

Deploy Transactions Missing from Chain #5081

antazoey opened this issue May 30, 2023 · 4 comments
Assignees
Labels
T-bug Type: bug

Comments

@antazoey
Copy link

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (1caa0fa 2023-05-30T00:05:25.903035000Z)

What command(s) is the bug in?

anvil --port 8545 --mnemonic "test test test test test test test test test test test junk" --accounts 10 --derivation-path "m/44'/60'/0'" --steps-tracing --block-base-fee-per-gas 0

Operating System

macOS (Intel)

Describe the bug

After sending a deploy txn, the RPC returns me a txn hash and increase the chain by 1 block.
However, I am unable to find the txn or receipt. The block's list of transactions is empty, and if I call web3.eth.get_transaction_receipt, I don't get a receipt.

This all was working not too long ago!

Here is a repro kinda (using web3.py connected to Anvil via HTTP):

serialized_txn = b"..."
txn_hash = self.web3.eth.send_raw_transaction(serialized_txn)  # Anvil gives me a hash

# Wait for a while just in case (either via breakpoint or time.sleep)

receipt_data = dict(self.web3.eth.get_transaction_receipt(HexStr(txn_hash)))
# ^ FAILS here with: *** web3.exceptions.TransactionNotFound: Transaction with hash: 
#  '0x2d7a9ecadf01e116ccfbf9421faeb5258c3528cbe5e853acf46eaad29090c7dc' not found.

# Check the block maybe?
block = dict(self.web3.eth.get_block(1))
# ^ returns block with NO txns.

# Try repeating the steps to notice the block is indeed increasing in number each attempt at deploying, but the txn is never 
#  there and there is no reason as to why.
@antazoey antazoey added the T-bug Type: bug label May 30, 2023
@Evalir
Copy link
Member

Evalir commented May 30, 2023

ack, will investigate

@Evalir Evalir self-assigned this May 30, 2023
@antazoey
Copy link
Author

antazoey commented May 30, 2023

ope, realizing I was running out of gas I think... but for some reason was not able to find that error or have it tell me, so maybe that is the focus of this request.

but after changing how i was setting gas back to what i was actually doing before, it worked again

@Evalir
Copy link
Member

Evalir commented Jun 14, 2023

we've merged a few improvements regarding gas estimation recently @antazoey — could you do foundryup and see if it's still happening?

@antazoey
Copy link
Author

we've merged a few improvements regarding gas estimation recently @antazoey — could you do foundryup and see if it's still happening?

I forgot to mention, everything is good now on my end. Thank you!

@Evalir Evalir closed this as completed Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

2 participants