aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-18 17:55:05 +0800
committerobscuren <geffobscura@gmail.com>2014-06-18 17:55:05 +0800
commit2fbcfd88249de8f55b7f06619d9003fadcc8e1e3 (patch)
tree7ccc28a91fe84eddfa3bfb1af631f9357858b152 /ethpub
parentdc9c9369e0b44873dedfdf37195268f0e524872d (diff)
downloaddexon-2fbcfd88249de8f55b7f06619d9003fadcc8e1e3.tar.gz
dexon-2fbcfd88249de8f55b7f06619d9003fadcc8e1e3.tar.zst
dexon-2fbcfd88249de8f55b7f06619d9003fadcc8e1e3.zip
Proper checks for multiple data items. Fixes #80
Diffstat (limited to 'ethpub')
-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 {