aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-10 01:09:55 +0800
committerobscuren <geffobscura@gmail.com>2014-08-10 01:09:55 +0800
commit024be32f0667c17b9240dda23a90612d17278b23 (patch)
tree88df62bacf3c4c706c89f7812c147669b412feef /ethchain/transaction.go
parent27290e12772f4a354cfdc6383222597f66cefa21 (diff)
downloadgo-tangerine-024be32f0667c17b9240dda23a90612d17278b23.tar.gz
go-tangerine-024be32f0667c17b9240dda23a90612d17278b23.tar.zst
go-tangerine-024be32f0667c17b9240dda23a90612d17278b23.zip
Make sure all left padded zero's aren't included
Diffstat (limited to 'ethchain/transaction.go')
-rw-r--r--ethchain/transaction.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/transaction.go b/ethchain/transaction.go
index 5686a7edb..e1b48a3d3 100644
--- a/ethchain/transaction.go
+++ b/ethchain/transaction.go
@@ -3,10 +3,11 @@ package ethchain
import (
"bytes"
"fmt"
+ "math/big"
+
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go"
- "math/big"
)
var ContractAddr = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
@@ -130,7 +131,7 @@ func (tx *Transaction) RlpData() interface{} {
// TODO Remove prefixing zero's
- return append(data, tx.v, tx.r, tx.s)
+ return append(data, tx.v, new(big.Int).SetBytes(tx.r).Bytes(), new(big.Int).SetBytes(tx.s).Bytes())
}
func (tx *Transaction) RlpValue() *ethutil.Value {