diff --git a/rpc/backend/blocks.go b/rpc/backend/blocks.go index 5b958bccf..cb8b6e05c 100644 --- a/rpc/backend/blocks.go +++ b/rpc/backend/blocks.go @@ -376,7 +376,7 @@ func (b *Backend) ReceiptsRoot(blockRes *tmrpctypes.ResultBlockResults) (common. for _, attr := range event.Attributes { if attr.Key == evmtypes.AttributeKeyEthereumReceiptsRoot { - return common.Hash([]byte(attr.Value)), nil + return common.HexToHash(attr.Value), nil } } } diff --git a/x/vm/keeper/keeper.go b/x/vm/keeper/keeper.go index acd4e0918..6b9bbeecd 100644 --- a/x/vm/keeper/keeper.go +++ b/x/vm/keeper/keeper.go @@ -162,7 +162,7 @@ func (k Keeper) EmitReceiptsRootEvent(ctx sdk.Context, receiptsRoot common.Hash) ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeReceiptsRoot, - sdk.NewAttribute(types.AttributeKeyEthereumReceiptsRoot, string(receiptsRoot.Bytes())), + sdk.NewAttribute(types.AttributeKeyEthereumReceiptsRoot, receiptsRoot.Hex()), ), ) }