From ca5f805b00873d3e52f35c7abcd7f3ab1a2a0232 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Fri, 1 Nov 2024 15:17:56 -0400 Subject: [PATCH] wip: update message signer --- x/evm/types/codec.go | 3 ++- x/evm/types/msg.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/x/evm/types/codec.go b/x/evm/types/codec.go index 60766f3c64..4b58d83bca 100644 --- a/x/evm/types/codec.go +++ b/x/evm/types/codec.go @@ -94,7 +94,8 @@ func UnpackTxData(any *codectypes.Any) (TxData, error) { return nil, errorsmod.Wrap(errortypes.ErrUnpackAny, "protobuf Any message cannot be nil") } - fmt.Println("UnpackTxData", any.GetCachedValue()) + fmt.Println("UnpackTxData cached", any.GetCachedValue()) + fmt.Println("UnpackTxData not cached", any.GetValue()) txData, ok := any.GetCachedValue().(TxData) if !ok { diff --git a/x/evm/types/msg.go b/x/evm/types/msg.go index 3080a0becb..4570220c59 100644 --- a/x/evm/types/msg.go +++ b/x/evm/types/msg.go @@ -422,6 +422,9 @@ func GetSigners(msg protov2.Message) ([][]byte, error) { if err != nil { fmt.Println("Eth message tryingTypeAnyV1 MsgEthereumTx error", err) } + fmt.Println("Eth message tryingTypeAnyV1 MsgEthereumTx data", msgTyped.Data) + fmt.Println("Eth message tryingTypeAnyV1 MsgEthereumTx data type", msgTyped.Data.TypeUrl) + data, err = UnpackTxData(msgTyped.Data) if err != nil { fmt.Println("Eth message tryingTypeAnyV1 MsgEthereumTx data error", err)