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 Oct 31, 2024
1 parent 55cd499 commit 9ee867b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/evm/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,21 @@ func GetSigners(msg protov2.Message) ([][]byte, error) {
fmt.Println("Eth message value of ", protoreflect.ValueOfMessage(msg.ProtoReflect()))

value := protoreflect.ValueOfMessage(msg.ProtoReflect())
fmt.Println("Eth message value string", value.String())
fmt.Println("Eth message value bytes", value.Bytes())
//var msgEthereumTx *MsgEthereumTx
//err := msgEthereumTx.Unmarshal(value.Bytes())
//if err != nil {
// return nil, err
//}

var msgData *codectypes.Any
var msgData *MsgEthereumTx
err := msgData.Unmarshal(value.Bytes())
if err != nil {
return nil, err
}

data, err := UnpackTxData(msgData)
data, err := UnpackTxData(msgData.Data)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 9ee867b

Please sign in to comment.