Merge pull request #8147 from blockscout/np-fix-sourcify-tests

Switch sourcify tests from POA Sokol to Gnosis Chiado
split-range-on-catchup-fail
Victor Baranov 1 year ago committed by GitHub
commit 6427c0b1da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/config.yml
  2. 1
      CHANGELOG.md
  3. 6
      apps/block_scout_web/test/block_scout_web/controllers/api/rpc/contract_controller_test.exs
  4. 2
      apps/block_scout_web/test/block_scout_web/controllers/api/v2/verification_controller_test.exs

@ -625,7 +625,7 @@ jobs:
PGUSER: postgres PGUSER: postgres
ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Nethermind.Mox" ETHEREUM_JSONRPC_CASE: "EthereumJSONRPC.Case.Nethermind.Mox"
ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox" ETHEREUM_JSONRPC_WEB_SOCKET_CASE: "EthereumJSONRPC.WebSocket.Case.Mox"
CHAIN_ID: "77" CHAIN_ID: "10200"
API_RATE_LIMIT_DISABLED: "true" API_RATE_LIMIT_DISABLED: "true"
ADMIN_PANEL_ENABLED: "true" ADMIN_PANEL_ENABLED: "true"
ACCOUNT_ENABLED: "true" ACCOUNT_ENABLED: "true"

@ -10,6 +10,7 @@
### Fixes ### Fixes
- [#8147](https://github.com/blockscout/blockscout/pull/8147) - Switch sourcify tests from POA Sokol to Gnosis Chiado
- [#8145](https://github.com/blockscout/blockscout/pull/8145) - Handle negative holders count in API v2 - [#8145](https://github.com/blockscout/blockscout/pull/8145) - Handle negative holders count in API v2
- [#8040](https://github.com/blockscout/blockscout/pull/8040) - Resolve issue with Docker image for Mac M1/M2 - [#8040](https://github.com/blockscout/blockscout/pull/8040) - Resolve issue with Docker image for Mac M1/M2
- [#8060](https://github.com/blockscout/blockscout/pull/8060) - Fix eth_getLogs API endpoint - [#8060](https://github.com/blockscout/blockscout/pull/8060) - Fix eth_getLogs API endpoint

@ -712,7 +712,7 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
params = %{ params = %{
"module" => "contract", "module" => "contract",
"action" => "verify_via_sourcify", "action" => "verify_via_sourcify",
"addressHash" => "0x18d89C12e9463Be6343c35C9990361bA4C42AfC2" "addressHash" => "0xf26594F585De4EB0Ae9De865d9053FEe02ac6eF1"
} }
response = response =
@ -732,14 +732,14 @@ defmodule BlockScoutWeb.API.RPC.ContractControllerTest do
_created_contract_address = _created_contract_address =
insert( insert(
:address, :address,
hash: "0x18d89C12e9463Be6343c35C9990361bA4C42AfC2", hash: "0xf26594F585De4EB0Ae9De865d9053FEe02ac6eF1",
contract_code: smart_contract_bytecode contract_code: smart_contract_bytecode
) )
params = %{ params = %{
"module" => "contract", "module" => "contract",
"action" => "verify_via_sourcify", "action" => "verify_via_sourcify",
"addressHash" => "0x18d89C12e9463Be6343c35C9990361bA4C42AfC2" "addressHash" => "0xf26594F585De4EB0Ae9De865d9053FEe02ac6eF1"
} }
get_implementation() get_implementation()

@ -222,7 +222,7 @@ defmodule BlockScoutWeb.API.V2.VerificationControllerTest do
end end
test "verify contract from sourcify repo", %{conn: conn} do test "verify contract from sourcify repo", %{conn: conn} do
address = "0x18d89C12e9463Be6343c35C9990361bA4C42AfC2" address = "0xf26594F585De4EB0Ae9De865d9053FEe02ac6eF1"
_contract = insert(:address, hash: address, contract_code: "0x01") _contract = insert(:address, hash: address, contract_code: "0x01")

Loading…
Cancel
Save