Open VanijaDev opened 6 years ago
OpenZeppelin bug
PS: I have tried switching lines 9 and 10 in RolexICO.sol.
RolexICO.sol
truffle(develop)> t.totalSupply() BigNumber { s: 1, e: 0, c: [ 0 ] } truffle(develop)> web3.eth.sendTransaction({from: web3.eth.accounts[0], to:ico.address, value:200}); Error: VM Exception while processing transaction: revert at Eth.send [as sendTransaction] (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/method.js:145:1) at RequestManager.send (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:61:1) at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1) truffle(develop)> t.totalSupply() BigNumber { s: 1, e: 0, c: [ 0 ] }
Tests are passed OK, but the issue persists if test manually with web3 (like screenshots above)
rolex_ico
OpenZeppelin bug
PS: I have tried switching lines 9 and 10 in
RolexICO.sol
.truffle(develop)> t.totalSupply() BigNumber { s: 1, e: 0, c: [ 0 ] } truffle(develop)> web3.eth.sendTransaction({from: web3.eth.accounts[0], to:ico.address, value:200}); Error: VM Exception while processing transaction: revert at Eth.send [as sendTransaction] (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/method.js:145:1) at RequestManager.send (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:61:1) at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1) truffle(develop)> t.totalSupply() BigNumber { s: 1, e: 0, c: [ 0 ] }