diff --git a/x/evm/keeper/attest_test.go b/x/evm/keeper/attest_test.go index 3a59240d..83f14dc5 100644 --- a/x/evm/keeper/attest_test.go +++ b/x/evm/keeper/attest_test.go @@ -49,6 +49,9 @@ var ( valsetTx1 = ethcoretypes.NewTx(ðcoretypes.DynamicFeeTx{ Data: common.FromHex(string(whoops.Must(os.ReadFile("testdata/valset-tx-data.hex")))), }) + handoverTx1 = ethcoretypes.NewTx(ðcoretypes.DynamicFeeTx{ + Data: common.FromHex(string(whoops.Must(os.ReadFile("testdata/cosmos-handover-tx-data.hex")))), + }) ) type record struct { diff --git a/x/evm/keeper/testdata/compass-handover-tx-data.hex b/x/evm/keeper/testdata/compass-handover-tx-data.hex new file mode 100644 index 00000000..58fa8761 --- /dev/null +++ b/x/evm/keeper/testdata/compass-handover-tx-data.hex @@ -0,0 +1 @@ +08d2b3e300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000066d07a1500000000000000000000000000000000000000000000000000000000002a68ba000000000000000000000000a3d47a fd36f72d72f84b9b44c1d546ccccb2f0be000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003000000000000000000000000ac1e9ffdb8fe9e35d94db97222757fb24c4cd535000000000000000000000000a3d47afd36f72d72f84b9b44c1d546ccccb2f0be000000000000000000000000d1cfaf669dc227d3cb185e71bf10bfa8e54801fe00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001bc8b38aff70b7ab11187bc9421a87648c28cb82e771e4477bf9ab72b32bf0ed2726701dca41e45b402d614ca543efffc1306108acc6a6c906d7c88170489ba9ce000000000000000000000000000000000000000000000000000000000000001bedd82188846e0513212262bec497bda398e6ca3f60f746c9a1342f04c255c6b9267fa68704d232657632b0373ab7b52d9b68860be53d5493892c6a30865b1263000000000000000000000000000000000000000000000000000000000000001bc67606416d56703cebf3e401cf74a580cc6bc04cc9b936005bff00adf20e58f609076da25d46d8d5b541bfc66d3c6b0275a7cc9702d1fabdcf3e7dcd36ba5cb000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000008bca41542fd0eceb586d89958842c62702a4904a0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002406937c5c000000000000000000000000a90c1c62690533deacecac895e2540b069ce7d1700000000000000000000000000000000000000000000000000000000000000000000000000000000904c6e4c0587bc00f39ec2e18b2c4c6f044244f10000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002406937c5c000000000000000000000000a90c1c62690533deacecac895e2540b069ce7d17000000000000000000000000000000000000000000000000000000000000000000000000000000005d1137401c5acfe0eadb392492517299cdebd8c6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000246974af69000000000000000000000000a90c1c62690533deacecac895e2540b069ce7d1700000000000000000000000000000000000000000000000000000000 diff --git a/x/evm/types/eth_txable.go b/x/evm/types/eth_txable.go index 86815fbe..946d0d18 100644 --- a/x/evm/types/eth_txable.go +++ b/x/evm/types/eth_txable.go @@ -3,7 +3,6 @@ package types import ( "bytes" "context" - "encoding/hex" "errors" "math/big" "strings" @@ -149,9 +148,6 @@ func (m *CompassHandover) VerifyAgainstTX( logger := liblog.FromSDKLogger(sdk.UnwrapSDKContext(ctx).Logger()). WithFields("tx_hash", tx.Hash().Hex(), "valset_id", valset.ValsetID) - // TODO: Remove - logger.WithFields("tx-data", hex.EncodeToString(tx.Data())).Info("DEBUGTEST") - logger.Debug("CompassHandover VerifyAgainstTX") if valset == nil || compass == nil {