From 62c88c81f18e6d3ce659ef291eb61ab0d2f6c539 Mon Sep 17 00:00:00 2001 From: Loesil Date: Fri, 3 Nov 2023 11:46:08 +0100 Subject: [PATCH] Fixed Issue https://github.com/iotaledger/wasp/issues/3027 Fix for issue https://github.com/iotaledger/wasp/issues/3027 as documented in https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt --- packages/evm/jsonrpc/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/evm/jsonrpc/types.go b/packages/evm/jsonrpc/types.go index f6b8a7fbbf..492218c6eb 100644 --- a/packages/evm/jsonrpc/types.go +++ b/packages/evm/jsonrpc/types.go @@ -173,11 +173,13 @@ func RPCMarshalReceipt(r *types.Receipt, tx *types.Transaction) map[string]inter "from": evmutil.MustGetSenderIfTxSigned(tx), "to": tx.To(), "cumulativeGasUsed": hexutil.Uint64(r.CumulativeGasUsed), + "effectiveGasPrice": "0xE8D4A51000", //1000 GWEI "gasUsed": hexutil.Uint64(r.GasUsed), "contractAddress": r.ContractAddress, "logs": rpcMarshalLogs(r), "logsBloom": r.Bloom, "status": hexutil.Uint64(r.Status), + "type": "0x0", //legacy transaction } }