|
|
@ -27,6 +27,7 @@ func (s stTransaction) MarshalJSON() ([]byte, error) { |
|
|
|
GasLimit []math.HexOrDecimal64 `json:"gasLimit"` |
|
|
|
GasLimit []math.HexOrDecimal64 `json:"gasLimit"` |
|
|
|
Value []string `json:"value"` |
|
|
|
Value []string `json:"value"` |
|
|
|
PrivateKey hexutil.Bytes `json:"secretKey"` |
|
|
|
PrivateKey hexutil.Bytes `json:"secretKey"` |
|
|
|
|
|
|
|
Sender *common.Address `json:"sender"` |
|
|
|
BlobVersionedHashes []common.Hash `json:"blobVersionedHashes,omitempty"` |
|
|
|
BlobVersionedHashes []common.Hash `json:"blobVersionedHashes,omitempty"` |
|
|
|
BlobGasFeeCap *math.HexOrDecimal256 `json:"maxFeePerBlobGas,omitempty"` |
|
|
|
BlobGasFeeCap *math.HexOrDecimal256 `json:"maxFeePerBlobGas,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
@ -46,6 +47,7 @@ func (s stTransaction) MarshalJSON() ([]byte, error) { |
|
|
|
} |
|
|
|
} |
|
|
|
enc.Value = s.Value |
|
|
|
enc.Value = s.Value |
|
|
|
enc.PrivateKey = s.PrivateKey |
|
|
|
enc.PrivateKey = s.PrivateKey |
|
|
|
|
|
|
|
enc.Sender = s.Sender |
|
|
|
enc.BlobVersionedHashes = s.BlobVersionedHashes |
|
|
|
enc.BlobVersionedHashes = s.BlobVersionedHashes |
|
|
|
enc.BlobGasFeeCap = (*math.HexOrDecimal256)(s.BlobGasFeeCap) |
|
|
|
enc.BlobGasFeeCap = (*math.HexOrDecimal256)(s.BlobGasFeeCap) |
|
|
|
return json.Marshal(&enc) |
|
|
|
return json.Marshal(&enc) |
|
|
@ -64,6 +66,7 @@ func (s *stTransaction) UnmarshalJSON(input []byte) error { |
|
|
|
GasLimit []math.HexOrDecimal64 `json:"gasLimit"` |
|
|
|
GasLimit []math.HexOrDecimal64 `json:"gasLimit"` |
|
|
|
Value []string `json:"value"` |
|
|
|
Value []string `json:"value"` |
|
|
|
PrivateKey *hexutil.Bytes `json:"secretKey"` |
|
|
|
PrivateKey *hexutil.Bytes `json:"secretKey"` |
|
|
|
|
|
|
|
Sender *common.Address `json:"sender"` |
|
|
|
BlobVersionedHashes []common.Hash `json:"blobVersionedHashes,omitempty"` |
|
|
|
BlobVersionedHashes []common.Hash `json:"blobVersionedHashes,omitempty"` |
|
|
|
BlobGasFeeCap *math.HexOrDecimal256 `json:"maxFeePerBlobGas,omitempty"` |
|
|
|
BlobGasFeeCap *math.HexOrDecimal256 `json:"maxFeePerBlobGas,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
@ -104,6 +107,9 @@ func (s *stTransaction) UnmarshalJSON(input []byte) error { |
|
|
|
if dec.PrivateKey != nil { |
|
|
|
if dec.PrivateKey != nil { |
|
|
|
s.PrivateKey = *dec.PrivateKey |
|
|
|
s.PrivateKey = *dec.PrivateKey |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if dec.Sender != nil { |
|
|
|
|
|
|
|
s.Sender = dec.Sender |
|
|
|
|
|
|
|
} |
|
|
|
if dec.BlobVersionedHashes != nil { |
|
|
|
if dec.BlobVersionedHashes != nil { |
|
|
|
s.BlobVersionedHashes = dec.BlobVersionedHashes |
|
|
|
s.BlobVersionedHashes = dec.BlobVersionedHashes |
|
|
|
} |
|
|
|
} |
|
|
|