diff options
author | zelig <viktor.tron@gmail.com> | 2015-05-20 11:11:48 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-05-20 11:11:48 +0800 |
commit | b0ae84aa0dae65f00492f981bb61887331def2a5 (patch) | |
tree | 369d5c342c6df8b5486c386663806937a4d9def1 /rpc/api.go | |
parent | ea893aca8fbda0d821424ab7509a0a0cfef1f77d (diff) | |
download | dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.gz dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.tar.zst dexon-b0ae84aa0dae65f00492f981bb61887331def2a5.zip |
multiple contract source for solidity compiler: returns contract array if multiple contracts. fixes #1023
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpc/api.go b/rpc/api.go index 0c1409d71..4b705c781 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -355,12 +355,11 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return err } - contract, err := solc.Compile(args.Source) + contracts, err := solc.Compile(args.Source) if err != nil { return err } - contract.Code = newHexData(contract.Code).String() - *reply = contract + *reply = contracts case "eth_newFilter": args := new(BlockFilterArgs) |