diff --git a/jsonrpc/testsuite/receipt-contract-deployment.json b/jsonrpc/testsuite/receipt-contract-deployment.json index 3c4231e9e7..4027c6f247 100644 --- a/jsonrpc/testsuite/receipt-contract-deployment.json +++ b/jsonrpc/testsuite/receipt-contract-deployment.json @@ -11,5 +11,6 @@ "gasUsed": "0x6590", "contractAddress": "0x0000000000000000000000000000000000000003", "from": "0x0000000000000000000000000000000000000001", - "to": null + "to": null, + "type": "0x0" } diff --git a/jsonrpc/testsuite/receipt-no-logs.json b/jsonrpc/testsuite/receipt-no-logs.json index 8968be786b..be997b981e 100644 --- a/jsonrpc/testsuite/receipt-no-logs.json +++ b/jsonrpc/testsuite/receipt-no-logs.json @@ -11,5 +11,6 @@ "gasUsed": "0x6590", "contractAddress": null, "from": "0x0000000000000000000000000000000000000001", - "to": "0x0000000000000000000000000000000000000002" + "to": "0x0000000000000000000000000000000000000002", + "type": "0x0" } diff --git a/jsonrpc/testsuite/receipt-with-logs.json b/jsonrpc/testsuite/receipt-with-logs.json index 294868bddd..3bad4e4ed8 100644 --- a/jsonrpc/testsuite/receipt-with-logs.json +++ b/jsonrpc/testsuite/receipt-with-logs.json @@ -40,5 +40,6 @@ "gasUsed": "0x6590", "contractAddress": null, "from": "0x0000000000000000000000000000000000000001", - "to": "0x0000000000000000000000000000000000000002" + "to": "0x0000000000000000000000000000000000000002", + "type": "0x0" } diff --git a/jsonrpc/types.go b/jsonrpc/types.go index 2a6264a290..b2c4c9f6a8 100644 --- a/jsonrpc/types.go +++ b/jsonrpc/types.go @@ -264,6 +264,7 @@ type receipt struct { ContractAddress *types.Address `json:"contractAddress"` FromAddr types.Address `json:"from"` ToAddr *types.Address `json:"to"` + Type argUint64 `json:"type"` } func toReceipt(src *types.Receipt, tx *types.Transaction, @@ -282,6 +283,7 @@ func toReceipt(src *types.Receipt, tx *types.Transaction, FromAddr: tx.From(), ToAddr: tx.To(), Logs: logs, + Type: argUint64(tx.Type()), } }