mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-02 11:11:16 +00:00
This commit is contained in:
parent
f363000d2d
commit
5634b75866
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ func (tx *Transaction) MarshalJSON() ([]byte, error) {
|
|||
enc.V = (*hexutil.Big)(itx.V)
|
||||
enc.R = (*hexutil.Big)(itx.R)
|
||||
enc.S = (*hexutil.Big)(itx.S)
|
||||
if tx.Protected() {
|
||||
enc.ChainID = (*hexutil.Big)(tx.ChainId())
|
||||
}
|
||||
|
||||
case *AccessListTx:
|
||||
enc.ChainID = (*hexutil.Big)(itx.ChainID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue