fixing dependencies

pull/391/head
ak 6 years ago
parent 0b3f44a3e8
commit 2eeba01ee0
  1. 8
      node/contract.go
  2. 52
      node/node.go

@ -1,17 +1,17 @@
package node
import (
import (
"crypto/ecdsa"
"encoding/hex"
"math/big"
"strconv"
"strings"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/harmony-one/harmony/core/types"
"github.com/harmony-one/harmony/internal/utils/contract"
)
//AddDepositContractToPendingTransactions adds the deposit smart contract the genesis block.
@ -64,4 +64,4 @@ func (node *Node) CreateStakingWithdrawTransaction(stake int) (*types.Transactio
dataEnc := common.FromHex(contractData)
tx, err := types.SignTx(types.NewTransaction(nonce, DepositContractAddress, node.Consensus.ShardID, big.NewInt(0), params.TxGasContractCreation*10, nil, dataEnc), types.HomesteadSigner{}, node.AccountKey)
return tx, err
}
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save