Skip to content

Commit

Permalink
fix(rpc): Native swap transaction format.
Browse files Browse the repository at this point in the history
  • Loading branch information
vldm committed Sep 15, 2021
1 parent f8ce458 commit 25e615d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm-utils/evm-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ impl RPCTransaction {
),
),
};
let caller_addr = tx.caller.to_string();
let addr = U256::from_big_endian(tx.caller.as_bytes());
let v = tx.chain_id;

(
Expand All @@ -702,7 +702,7 @@ impl RPCTransaction {
value,
nonce,
v,
Hex::<U256>::from_hex(&caller_addr)?.0,
addr,
U256::from(0x1),
)
}
Expand Down

0 comments on commit 25e615d

Please sign in to comment.