aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/transaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/transaction.go')
-rw-r--r--core/types/transaction.go20
1 files changed, 18 insertions, 2 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index f5aa89a15..6f438ad9d 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -28,11 +28,27 @@ type Transaction struct {
}
func NewContractCreationTx(amount, gasLimit, gasPrice *big.Int, data []byte) *Transaction {
- return &Transaction{Recipient: nil, Amount: amount, GasLimit: gasLimit, Price: gasPrice, Payload: data}
+ return &Transaction{
+ Recipient: nil,
+ Amount: amount,
+ GasLimit: gasLimit,
+ Price: gasPrice,
+ Payload: data,
+ R: new(big.Int),
+ S: new(big.Int),
+ }
}
func NewTransactionMessage(to common.Address, amount, gasAmount, gasPrice *big.Int, data []byte) *Transaction {
- return &Transaction{Recipient: &to, Amount: amount, GasLimit: gasAmount, Price: gasPrice, Payload: data}
+ return &Transaction{
+ Recipient: &to,
+ Amount: amount,
+ GasLimit: gasAmount,
+ Price: gasPrice,
+ Payload: data,
+ R: new(big.Int),
+ S: new(big.Int),
+ }
}
func NewTransactionFromBytes(data []byte) *Transaction {