Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract verification non-detemenistic test #4875

Closed
vbaranov opened this issue Nov 8, 2021 · 0 comments · Fixed by #5038
Closed

Contract verification non-detemenistic test #4875

vbaranov opened this issue Nov 8, 2021 · 0 comments · Fixed by #5038
Assignees
Labels

Comments

@vbaranov
Copy link
Member

vbaranov commented Nov 8, 2021

This non-detemenistic test is failing in almost all first runs of CI for each PR. It slows down PRs merging to master branch.

  2) test verification with nightly builds verification is failed if wrong nightly version of compiler ~0.5.11 (Explorer.SmartContract.Solidity.VerifierTest)
Error:      test/explorer/smart_contract/solidity/verifier_test.exs:760
     match (=) failed
     code:  assert {:error, :compiler_version} = response
     left:  {:error, :compiler_version}
     right: {:ok,
             %{
               abi: [
                 %{
                   "constant" => true,
                   "inputs" => [],
                   "name" => "lastSender",
                   "outputs" => [
                     %{
                       "internalType" => "address",
                       "name" => "",
                       "type" => "address"
                     }
                   ],
                   "payable" => false,
                   "stateMutability" => "view",
                   "type" => "function"
                 },
                 %{
                   "constant" => true,
                   "inputs" => [],
                   "name" => "value",
                   "outputs" => [
                     %{
                       "internalType" => "uint256",
                       "name" => "",
                       "type" => "uint256"
                     }
                   ],
                   "payable" => false,
                   "stateMutability" => "view",
                   "type" => "function"
                 },
                 %{
                   "constant" => false,
                   "inputs" => [
                     %{
                       "internalType" => "uint256",
                       "name" => "delta",
                       "type" => "uint256"
                     }
                   ],
                   "name" => "inc",
                   "outputs" => [],
                   "payable" => false,
                   "stateMutability" => "nonpayable",
                   "type" => "function"
                 },
                 %{
                   "inputs" => [
                     %{
                       "internalType" => "uint256",
                       "name" => "initialValue",
                       "type" => "uint256"
                     }
                   ],
                   "payable" => false,
                   "stateMutability" => "nonpayable",
                   "type" => "constructor"
                 },
                 %{
                   "anonymous" => false,
                   "inputs" => [
                     %{
                       "indexed" => true,
                       "internalType" => "address",
                       "name" => "sender",
                       "type" => "address"
                     },
                     %{
                       "indexed" => false,
                       "internalType" => "uint256",
                       "name" => "newValue",
                       "type" => "uint256"
                     }
                   ],
                   "name" => "Incremented",
                   "type" => "event"
                 }
               ]
             }}
     stacktrace:
       test/explorer/smart_contract/solidity/verifier_test.exs:785: (test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants