|
|
@ -449,7 +449,7 @@ func (node *Node) AddDepositContractToPendingTransactions() { |
|
|
|
dataEnc := common.FromHex(contractData) |
|
|
|
dataEnc := common.FromHex(contractData) |
|
|
|
// Unsigned transaction to avoid the case of transaction address.
|
|
|
|
// Unsigned transaction to avoid the case of transaction address.
|
|
|
|
mycontracttx, _ := types.SignTx(types.NewContractCreation(uint64(0), node.Consensus.ShardID, contractFunds, params.TxGasContractCreation*10, nil, dataEnc), types.HomesteadSigner{}, priKey) |
|
|
|
mycontracttx, _ := types.SignTx(types.NewContractCreation(uint64(0), node.Consensus.ShardID, contractFunds, params.TxGasContractCreation*10, nil, dataEnc), types.HomesteadSigner{}, priKey) |
|
|
|
node.ContractAddresses = append(node.ContractAddresses, crypto.CreateAddress(crypto.PubkeyToAddress(priKey.PublicKey), uint64(0))) |
|
|
|
node.ContractAddresses = append(node.ContractAddresses, crypto.CreateAddress(contractAddress, uint64(0))) |
|
|
|
node.addPendingTransactions(types.Transactions{mycontracttx}) |
|
|
|
node.addPendingTransactions(types.Transactions{mycontracttx}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|