mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
Merge pull request #1649 from maran/pending_tx_response
rpc/api: format pendingTx response. Fixes #1648
This commit is contained in:
commit
ff1f6fa09d
@ -908,14 +908,14 @@ func (args *SubmitWorkArgs) UnmarshalJSON(b []byte) (err error) {
|
||||
type tx struct {
|
||||
tx *types.Transaction
|
||||
|
||||
To string
|
||||
From string
|
||||
Nonce string
|
||||
Value string
|
||||
Data string
|
||||
GasLimit string
|
||||
GasPrice string
|
||||
Hash string
|
||||
To string `json:"to"`
|
||||
From string `json:"from"`
|
||||
Nonce string `json:"nonce"`
|
||||
Value string `json:"value"`
|
||||
Data string `json:"data"`
|
||||
GasLimit string `json:"gas"`
|
||||
GasPrice string `json:"gasPrice"`
|
||||
Hash string `json:"hash"`
|
||||
}
|
||||
|
||||
func newTx(t *types.Transaction) *tx {
|
||||
|
Loading…
Reference in New Issue
Block a user