common/compiler: simplify solc wrapper
Support for legacy version 0.9.x is gone. The compiler version is no longer cached. Compilation results (and the version) are read directly from stdout using the --combined-json flag. As a workaround for ethereum/solidity#651, source code is written to a temporary file before compilation. Integration of solc in package ethapi and cmd/abigen is now much simpler because the compiler wrapper is no longer passed around as a pointer. Fixes #2806, accidentally
Showing
- cmd/abigen/main.go 1 addition, 12 deletionscmd/abigen/main.go
- common/compiler/solidity.go 93 additions, 122 deletionscommon/compiler/solidity.go
- common/compiler/solidity_test.go 39 additions, 43 deletionscommon/compiler/solidity_test.go
- eth/backend.go 1 addition, 3 deletionseth/backend.go
- eth/bind.go 1 addition, 1 deletioneth/bind.go
- internal/ethapi/api.go 3 additions, 65 deletionsinternal/ethapi/api.go
- internal/ethapi/backend.go 5 additions, 8 deletionsinternal/ethapi/backend.go
- internal/ethapi/solc.go 82 additions, 0 deletionsinternal/ethapi/solc.go
Loading
Please register or sign in to comment