mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-15 01:04:11 +00:00
rpc/api: format pendingTx response. Fixes #1648
This commit is contained in:
parent
0dd6911c62
commit
8603ec7055
@ -908,14 +908,14 @@ func (args *SubmitWorkArgs) UnmarshalJSON(b []byte) (err error) {
|
|||||||
type tx struct {
|
type tx struct {
|
||||||
tx *types.Transaction
|
tx *types.Transaction
|
||||||
|
|
||||||
To string
|
To string `json:"to"`
|
||||||
From string
|
From string `json:"from"`
|
||||||
Nonce string
|
Nonce string `json:"nonce"`
|
||||||
Value string
|
Value string `json:"value"`
|
||||||
Data string
|
Data string `json:"data"`
|
||||||
GasLimit string
|
GasLimit string `json:"gas"`
|
||||||
GasPrice string
|
GasPrice string `json:"gasPrice"`
|
||||||
Hash string
|
Hash string `json:"hash"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func newTx(t *types.Transaction) *tx {
|
func newTx(t *types.Transaction) *tx {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user