Skip to content

Commit

Permalink
chore: update 4bytes db test
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt1811 committed Sep 5, 2023
1 parent c7b6610 commit 8e78a18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions 4bytes_db_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func TestUpdate4Bytes(t *testing.T) {
assert.Equal(util.GetMethodNameFromMethodId("0xe8e33700"), "addLiquidity")
assert.Equal(util.GetMethodNameFromMethodId("0x42842e0e"), "safeTransferFrom")
assert.Equal(util.GetMethodNameFromMethodId("0xecd5ff33"), "setProgramTime")
assert.Equal(util.GetMethodNameFromMethodId("0xbe739356"), "sendReward")
assert.Equal(util.GetMethodNameFromMethodId("0x743cec2d"), "exchangeWithValue")

data := "0q7S1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGSWzhIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQVbZvQpCuU8VUVDSeyAd243bdr5ljiPA3bK7aUm/VuQVdhajtudaHAI7ltLe1GHQeZchiXxaXAq2Ez+6ErCpJRscAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
signature := util.GetMethodNameFromData(data)
Expand Down
8 changes: 4 additions & 4 deletions infrastructure/kafka/consumer/worker/internal_txs_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
)

var rewardType = map[string]bool{
"sendReward": true,
"redeemReward": true,
"exchange": true,
"exchangeWithValue": true,
"sendReward": true,
//"redeemReward": true,
//"exchange": true,
//"exchangeWithValue": true,
}

func RunInternalTxsConsumer(rdbHandle *rdb.Handle, config *config.Config, logger applogger.Logger, evmUtil evm.EvmUtils, sigchan chan os.Signal) error {
Expand Down

0 comments on commit 8e78a18

Please sign in to comment.