Created
June 26, 2018 02:38
-
-
Save cgewecke/d2325422bc51f2c05965d6e4f6d06127 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Abstract.sol... | |
Compiling ./contracts/Example.sol... | |
Compiling ./contracts/ExampleAssert.sol... | |
Compiling ./contracts/ExampleRevert.sol... | |
Compiling ./contracts/Loops.sol... | |
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/RevertWithReason.sol... | |
Compiling ./contracts/UsesExample.sol... | |
Writing artifacts to ./build/contracts | |
Starting migrations... | |
====================== | |
> Network name: 'development' | |
> Network id: 1529980616451 | |
1_initial_migration.js | |
====================== | |
Deploying 'Migrations' | |
---------------------- | |
> transaction hash: 0x033e4294c120611c93a202212aa0161fd52a3fdec88f76ecccd5427a6c84a910 | |
> contract address: 0x344febC3C3e4CBf9704fE9cE654f2F00d16550d1 | |
> account: 0x994855afBb8B101DF09CAAef9eF754b7967c73b6 | |
> balance: 99.99445076 | |
> gas used: 277462 | |
> gas price: 20 gwei | |
> value sent: 0 ETH | |
> total cost: 0.00554924 ETH | |
* Saving migration | |
* Saving artifacts | |
------------------------------------- | |
> Total cost: 0.00554924 ETH | |
2_migrations_revert.js | |
====================== | |
Deploying 'Example' | |
------------------- | |
> transaction hash: 0x4786154a445dcaff03941fe62b79e7f0c4279c418847fbba7eaa3d685f740f85 | |
> contract address: 0xCe8b2cdb8f1D9A0B8ce82EAC34735449C16f62F2 | |
> account: 0x994855afBb8B101DF09CAAef9eF754b7967c73b6 | |
> balance: 99.98965088 | |
> gas used: 197986 | |
> gas price: 20 gwei | |
> value sent: 0 ETH | |
> total cost: 0.00395972 ETH | |
Deploying 'ExampleRevert' | |
------------------------- | |
Error: "ExampleRevert" hit a require or revert statement somewhere in its constructor. Try: | |
* Verifying that your constructor params satisfy all require conditions. | |
* Adding reason strings to your require statements. | |
Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan. | |
Error: 1 | |
at /Users/cgewecke/code/consensys/truffle/packages/truffle-deployer/src/deployment.js:322:17 | |
at <anonymous> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This needs work - I think we should be clear for errors like this that the tx is never actually transmitted to the chain. The client does a pre-flight on the vm, sees it fail and abandons the attempt.