Skip to content

Commit

Permalink
bump git modules, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
InoMurko committed Jan 22, 2021
1 parent bd9661b commit aac332c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ jobs:
command: |
make init_test
cp ./localchain_contract_addresses.env ./priv/cabbage/apps/itest/localchain_contract_addresses.env
docker-compose -f docker-compose.yml -f docker-compose.feefeed.yml -f docker-compose.specs.yml up -d || (START_RESULT=$?; docker-compose logs; exit $START_RESULT;)
docker-compose -f docker-compose.yml -f docker-compose.specs.yml up -d || (START_RESULT=$?; docker-compose logs; exit $START_RESULT;)
- run:
name: Log daemon services
command: make cabbage-logs
Expand Down Expand Up @@ -761,7 +761,7 @@ jobs:
command: |
make init_test_reorg
cp ./localchain_contract_addresses.env ./priv/cabbage/apps/itest/localchain_contract_addresses.env
docker-compose -f docker-compose.yml -f docker-compose.feefeed.yml -f docker-compose.reorg.yml -f docker-compose.specs.yml up -d || (START_RESULT=$?; docker-compose logs; exit $START_RESULT;)
docker-compose -f docker-compose.yml -f docker-compose.reorg.yml -f docker-compose.specs.yml up -d || (START_RESULT=$?; docker-compose logs; exit $START_RESULT;)
- run:
name: Log daemon services
command: make cabbage-logs-reorg
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "priv/cabbage"]
path = priv/cabbage
url = git@github.com:omgnetwork/specs.git
branch = inomurko/configurable_exit_id_sizer
branch = master
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ docker-remote-watcher_info:
###
start-services:
SNAPSHOT=SNAPSHOT_MIX_EXIT_PERIOD_SECONDS_120 make init_test && \
docker-compose -f ./docker-compose.yml -f ./docker-compose.feefeed.yml up feefeed geth nginx postgres
docker-compose -f ./docker-compose.yml up feefeed geth nginx postgres

start-watcher:
. ${OVERRIDING_VARIABLES} && \
Expand Down
4 changes: 2 additions & 2 deletions apps/omg_eth/test/omg_eth/root_chain/abi_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ defmodule OMG.Eth.RootChain.AbiTest do

test "if exit started can be decoded" do
exit_started_log = %{
:event_signature => "ExitStarted(address,uint168,uint256)",
:event_signature => "ExitStarted(address,uint168,uint256,bytes)",
"address" => "0x92ce4d7773c57d96210c46a07b89acf725057f21",
"blockHash" => "0x1bee6f75c74ceeb4817dc160e2fb56dd1337a9fc2980a2b013252cf1e620f246",
"blockNumber" => "0x" <> Integer.to_string(726, 16),
Expand All @@ -561,7 +561,7 @@ defmodule OMG.Eth.RootChain.AbiTest do

assert Abi.decode_log(exit_started_log) == %{
eth_height: 726,
event_signature: "ExitStarted(address,uint168,uint256)",
event_signature: "ExitStarted(address,uint168,uint256,bytes)",
log_index: 1,
root_chain_txhash:
<<74, 130, 72, 184, 138, 23, 178, 190, 76, 96, 134, 161, 152, 70, 34, 222, 26, 96, 221, 163, 201, 221,
Expand Down
2 changes: 1 addition & 1 deletion apps/omg_eth/test/omg_eth/root_chain_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ defmodule OMG.Eth.RootChainTest do

defp exit_id_from_receipt(%{"logs" => logs}) do
topic =
"ExitStarted(address,uint160)"
"ExitStarted(address,uint168,uint256,bytes)"
|> Crypto.keccak_hash()
|> Encoding.to_hex()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ defmodule OMG.Watcher.EthereumEventAggregatorTest do
enrich: false
],
[
signature: "ExitStarted(address,uint168,uint256)",
signature: "ExitStarted(address,uint168,uint256,bytes)",
name: :exit_started,
enrich: false
],
Expand All @@ -106,7 +106,7 @@ defmodule OMG.Watcher.EthereumEventAggregatorTest do
assert event_fetcher_name |> :sys.get_state() |> Map.get(:event_signatures) |> Enum.sort() ==
Enum.sort([
"DepositCreated(address,uint256,address,uint256)",
"ExitStarted(address,uint168,uint256)",
"ExitStarted(address,uint168,uint256,bytes)",
"InFlightExitDeleted(uint168)",
"InFlightExitInputPiggybacked(address,bytes32,uint16)",
"InFlightExitOutputPiggybacked(address,bytes32,uint16)",
Expand Down Expand Up @@ -473,7 +473,7 @@ defmodule OMG.Watcher.EthereumEventAggregatorTest do

def exit_started_log(block_number) do
%{
:event_signature => "ExitStarted(address,uint168,uint256)",
:event_signature => "ExitStarted(address,uint168,uint256,bytes)",
"address" => "0x92ce4d7773c57d96210c46a07b89acf725057f21",
"blockHash" => "0x1bee6f75c74ceeb4817dc160e2fb56dd1337a9fc2980a2b013252cf1e620f246",
"blockNumber" => "0x" <> Integer.to_string(block_number, 16),
Expand Down

0 comments on commit aac332c

Please sign in to comment.