Version 2.2.7 fixes several RPC and tracing methods so they report what actually happens on chain. Upgrading is recommended for node operators who serve RPC, tracing or simulation requests.
Fixed
- Fixed tracing (
debug_trace*,trace_*) ofCREATEandCREATE2with init code between 48 KiB and 96 KiB. Tracing applied the 96 KiB limit for a whole transaction, so it reported these creates as successful, but on chain they fail. - Fixed
eth_simulateV1using geth's VM configuration instead of Sonic's. Simulated calls now use Sonic's code size limits (48 KiB code, 96 KiB init code for creation transactions, 48 KiB forCREATEandCREATE2), fee and balance handling, and the 10% charge on unused gas. TheirgasUsednow matches the receipt the same transaction would get on chain. A call withoutgasdefaults to the remaining block gas, capped by the RPC gas cap, so itsgasUsednow includes 10% of that unused amount (up to about 5M gas with the default cap). Clients that usegasUsedas a gas estimate must setgas. - Fixed
eth_simulateV1returning a request error for a call whosevalueexceeds the sender's balance. The call now fails, as it would on chain. - Fixed
eth_simulateV1running all calls of a simulated block as one transaction. Each call now ends its transaction, so later calls no longer see the transient storage, refunds or EIP-6780 created-contract status of earlier calls. ThegasUsedof later calls can change as a result. - Fixed
eth_simulateV1withvalidation: truerejecting calls above the transaction gas limit on Osaka networks, and rejecting senders that have code. As in go-ethereum, validation now only turns on the nonce check. - Fixed
eth_simulateV1returning logs from call frames that failed, including the valueTransferof a failed call. - Fixed
eth_simulateV1withtraceTransfersreporting aTransferforCALLCODE, which moves no value. - Fixed
eth_simulateV1leaving gaps inlogIndex. Logs are now numbered one after another across the block, as in receipts. - Fixed
eth_simulateV1crashing when a call setsblobVersionedHasheswithoutmaxFeePerBlobGas. The blob fee cap now defaults to 0, also ineth_call,eth_estimateGasand the other RPCs that build a call from the same arguments. - Fixed the
stateDiffoftrace_callandtrace_callManyfor accounts that are self-destructed, receive value, or are created and destroyed in the same transaction. Accounts and storage slots whose value does not change overall are now left out. - Fixed
callTracerreporting0x0as the log index of every log. - Fixed the
fromAddressandtoAddressfilters oftrace_filtermissing traces ofCREATE,CREATE2andSELFDESTRUCT. They now match the deployed contract, the destroyed contract and the beneficiary, as OpenEthereum does. - Fixed
trace_filterwithafterand nocountreturning an empty result. A missingcount, or acountof 0, now means no limit. - Fixed
eth_createAccessListwithoutgasfailing withintrinsic gas too lowfor calls that access storage. - Fixed the default gas of transactions that send their calldata as
inputinstead ofdata, which was estimated without the calldata. This affectedeth_createAccessList,eth_sendTransaction,eth_signTransactionandeth_fillTransactionwhengasis omitted.