Skip to content

Commit 2305dc7

Browse files
fix: cast send --legacy support (#27)
* fix: cast send --legacy support * changelog --------- Co-authored-by: Eric Warehime <[email protected]>
1 parent 08eb3b7 commit 2305dc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### BUG FIXES
1111

1212
- Fixed example chain's cmd by adding NoOpEVMOptions to tmpApp in root.go
13+
- Added RPC support for `--legacy` transactions (Non EIP-1559)
1314

1415
### IMPROVEMENTS
1516

rpc/backend/tx_info.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ func (b *Backend) GetTransactionReceipt(hash common.Hash) (map[string]interface{
241241
"blockNumber": hexutil.Uint64(res.Height), //nolint:gosec // G115 // won't exceed uint64
242242
"transactionIndex": hexutil.Uint64(res.EthTxIndex), //nolint:gosec // G115 // no int overflow expected here
243243

244+
// https://github.com/foundry-rs/foundry/issues/7640
245+
"effectiveGasPrice": (*hexutil.Big)(txData.GetGasPrice()),
246+
244247
// sender and receiver (contract or EOA) addreses
245248
"from": from,
246249
"to": txData.GetTo(),

0 commit comments

Comments
 (0)