abigen: adding this tidbit in here for safety assurance

Signed-off-by: RJ Catalano <rj@monax.io>
This commit is contained in:
RJ Catalano 2017-08-20 15:04:04 -05:00
parent 2dec80b1ad
commit 9a6990c15e
No known key found for this signature in database
GPG key ID: D4AB109D9B5D6386

View file

@ -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)
} }