aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/pub.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-18 19:19:03 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-18 19:19:03 +0800
commitfba6de834ec262313aba7c4f45b05fe6ff074e46 (patch)
treecf4facc4b61c7c70627e0dad537cdf0a0f79f5e8 /ethpub/pub.go
parent22e16f15a69f53934a61978eb18fdf0244a74a99 (diff)
parent2fbcfd88249de8f55b7f06619d9003fadcc8e1e3 (diff)
downloaddexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar.gz
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar.bz2
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar.lz
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar.xz
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.tar.zst
dexon-fba6de834ec262313aba7c4f45b05fe6ff074e46.zip
Merge branch 'develop' of github.com:ethereum/eth-go into develop
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r--ethpub/pub.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index 20ba79d0b..b475453af 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -170,11 +170,6 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
tx = ethchain.NewContractCreationTx(value, gas, gasPrice, script)
} else {
- // Just in case it was submitted as a 0x prefixed string
- if len(scriptStr) > 0 && scriptStr[0:2] == "0x" {
- scriptStr = scriptStr[2:len(scriptStr)]
- }
-
data := ethutil.StringToByteFunc(scriptStr, func(s string) (ret []byte) {
slice := strings.Split(s, "\n")
for _, dataItem := range slice {