Skip to content

Commit

Permalink
wip: update message signer
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Nov 1, 2024
1 parent 16c3e6b commit ca5f805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/evm/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions x/evm/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca5f805

Please sign in to comment.