mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
abigen: adding this tidbit in here for safety assurance
Signed-off-by: RJ Catalano <rj@monax.io>
This commit is contained in:
parent
2dec80b1ad
commit
9a6990c15e
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ func main() {
|
||||||
solc, err := compiler.InitSolc(*solcFlag)
|
solc, err := compiler.InitSolc(*solcFlag)
|
||||||
|
|
||||||
solReturn, err := solc.Compile(compiler.FlagOpts{}, *solFlag)
|
solReturn, err := solc.Compile(compiler.FlagOpts{}, *solFlag)
|
||||||
if err != nil {
|
if err != nil || solReturn.Typ != compiler.Solc {
|
||||||
fmt.Printf("Failed to build Solidity contract: %v\n", err)
|
fmt.Printf("Failed to build Solidity contract: %v\n", err)
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue