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

Error output when running truffle test. #37

Open
hackfisher opened this issue Sep 22, 2018 · 2 comments
Open

Error output when running truffle test. #37

hackfisher opened this issue Sep 22, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hackfisher
Copy link
Contributor

    1) "before all" hook: deploy and configure


  0 passing (2s)
  1 failing

  1) Contract: bancor deployment
       "before all" hook: deploy and configure:
     Error: VM Exception while processing transaction: out of gas
      at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
      at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
      at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
      at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
      at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
      at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
      at endReadableNT (_stream_readable.js:1056:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)
@hackfisher hackfisher added the bug Something isn't working label Sep 22, 2018
@G-TipSolutions
Copy link

same here...ive tried everything...

Contract: DecentralBank
1) "before all" hook in "Contract: DecentralBank"

0 passing (3s)
1 failing

  1. Contract: DecentralBank
    "before all" hook in "Contract: DecentralBank":
    Error: Returned error: VM Exception while processing transaction: revert
    at Context. (C:/Users/bgsho/Solidity/defi-staking-app/test/decentralBank.tests.js:25:20)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
before(async () => {
    // Load Contracts
    // this.enableTimeouts(false)   <===I saw somewhere that this might work but not sure how to setup
    tether = await Tether.new()
    rwd = await RWD.new()
    decentralBank = await DecentralBank.new(rwd.address, tether.address)
    // Transfer all tokens to DecentralBank (1 million)
     await rwd.transfer(decentralBank.address, tokens('1000000'))
    
    // Transfer 100 mock Tethers to Customer
    await tether.transfer(customer, tokens('100'), {from: owner})
})

@hujw77
Copy link
Collaborator

hujw77 commented May 23, 2022

Please check out to dev branch, and use https://github.com/dapphub/dapptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants