diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-11-11 16:27:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-15 00:00:14 +0800 |
commit | 5513c49c54f42ce6a9683b4fad9193b361b47f8c (patch) | |
tree | b7cf78b5e788114d88aa6ae48db8bb32373a180d /accounts/abi/bind/template.go | |
parent | b61f48e5aad9cf897f5655a0db002a3349109c67 (diff) | |
download | go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar.gz go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar.bz2 go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar.lz go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar.xz go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.tar.zst go-tangerine-5513c49c54f42ce6a9683b4fad9193b361b47f8c.zip |
accounts/abi/bind, mobile: review fixes and android tests
Diffstat (limited to 'accounts/abi/bind/template.go')
-rw-r--r-- | accounts/abi/bind/template.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 7225794a1..64dd598c0 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -283,8 +283,8 @@ import org.ethereum.geth.internal.*; public final static String ABI = "{{.InputABI}}"; {{if .InputBin}} - // Bytecode is the compiled bytecode used for deploying new contracts. - public final static byte[] Bytecode = "{{.InputBin}}".getBytes(); + // BYTECODE is the compiled bytecode used for deploying new contracts. + public final static byte[] BYTECODE = "{{.InputBin}}".getBytes(); // deploy deploys a new Ethereum contract, binding an instance of {{.Type}} to it. public static {{.Type}} deploy(TransactOpts auth, EthereumClient client{{range .Constructor.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception { @@ -292,7 +292,7 @@ import org.ethereum.geth.internal.*; {{range $index, $element := .Constructor.Inputs}} args.set({{$index}}, Geth.newInterface()); args.get({{$index}}).set{{namedtype (bindtype .Type) .Type}}({{.Name}}); {{end}} - return new {{.Type}}(Geth.deployContract(auth, ABI, Bytecode, client, args)); + return new {{.Type}}(Geth.deployContract(auth, ABI, BYTECODE, client, args)); } // Internal constructor used by contract deployment. |