Open hackfisher opened 6 years ago
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.
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})
})
Please check out to dev branch, and use https://github.com/dapphub/dapptools