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 10fd039 commit ec7c54a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions x/evm/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,6 @@ func GetSigners(msg protov2.Message) ([][]byte, error) {

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

marshaledData, err := protov2.Marshal(msg)
fmt.Println("Eth message marshaled data", marshaledData)
Expand All @@ -315,15 +310,6 @@ func GetSigners(msg protov2.Message) ([][]byte, error) {
return nil, err
}

// func (msg MsgEthereumTx) AsTransaction() *ethtypes.Transaction {
// txData, err := UnpackTxData(msg.Data)
// if err != nil {
// return nil
// }
//
// return ethtypes.NewTx(txData.AsEthereumData())
// }

transaction := ethtypes.NewTx(data.AsEthereumData())

signerEncoded := ethtypes.LatestSignerForChainID(data.GetChainID())
Expand Down

0 comments on commit ec7c54a

Please sign in to comment.