@ -48,7 +48,7 @@ defmodule Explorer.Staking.ContractStateTest do
assert ContractState . get ( :token_contract_address ) == " 0x6f7a73c96bd56f8b0debc795511eda135e105ea3 "
assert Repo . aggregate ( StakingPool , :count , :id ) == 4
assert Repo . aggregate ( StakingPoolsDelegator , :count , :id ) == 3
assert Repo . aggregate ( StakingPoolsDelegator , :count , :id ) == 7
end
defp set_init_mox ( ) do
@ -176,10 +176,30 @@ defmodule Explorer.Staking.ContractStateTest do
EthereumJSONRPC.Mox ,
:json_rpc ,
fn requests , _opts ->
assert length ( requests ) == 1 5
assert length ( requests ) == 3 5
{ :ok ,
format_responses ( [
" 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000de0b6b3a7640000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,
" 0x0000000000000000000000000000000000000000000000000000000000000000 " ,