mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 09:38:24 -05:00
fix(rpc): set tx receipt contract address independent of status (#1996)
This commit is contained in:
@@ -318,11 +318,8 @@ where
|
||||
|
||||
match tx.transaction.kind() {
|
||||
Create => {
|
||||
// set contract address if creation was successful
|
||||
if receipt.success {
|
||||
res_receipt.contract_address =
|
||||
Some(create_address(transaction.signer(), tx.transaction.nonce()));
|
||||
}
|
||||
res_receipt.contract_address =
|
||||
Some(create_address(transaction.signer(), tx.transaction.nonce()));
|
||||
}
|
||||
Call(addr) => {
|
||||
res_receipt.to = Some(*addr);
|
||||
|
||||
Reference in New Issue
Block a user