Fairblock / ArbitrumContracts

0 stars 0 forks source link

Adjust Simple Auction Example to Use Anvil Fork of Arbitrum Sepolia w/ `Decrypter` Pre-Deployed #3

Open hashedtitan opened 15 hours ago

hashedtitan commented 15 hours ago

Scope

Setup the Simple Auction Example, and maybe others, to use an anvil fork of arbitrum sepolia testnet so we can simulate multiple bidders and have the 'students' come in and clone the repo and use a brand new wallet with no sepolia eth. The key here is that they don't need to get a bunch of sepETH to be able to run the tutorials.

TODOs:

Below are rough implementation steps to take where edits could be made to the bash test file, and additions made to the appropriate README.

# Define the Anvil RPC URL pointing to the Arbitrum Sepolia fork
RPC_URL="http://127.0.0.1:8545"
# Adjust account balances to match your testing needs
cast rpc anvil_setBalance <account_address> 0xDE0B6B3A7640000 --rpc-url $RPC_URL  # Set to 1 ETH (in wei) 
hashedtitan commented 12 hours ago

error code -32603: EVM error OpcodeNotFound.