Commit 2374fd92 authored by QM's avatar QM

up

parent e96b4141
......@@ -185,8 +185,9 @@ func NewTxWrite(infos []*DeployInfo, deployerAddr common.Address, url, fileName
if gasLimit < 100*10000 {
gasLimit = 100 * 10000
}
ntx := types.NewTx(&types.AccessListTx{
ChainID: big.NewInt(chainId),
ntx := types.NewTx(&types.LegacyTx{
//ntx := types.NewTx(&types.AccessListTx{
// ChainID: big.NewInt(chainId),
Nonce: info.Nonce,
Gas: gasLimit,
GasPrice: price,
......
......@@ -274,7 +274,8 @@ func (s *SignPanCakeRout) reWriteDeployPanCakeRout(nonce uint64, gasPrice *big.I
}
func SignTx(key *ecdsa.PrivateKey, tx *types.Transaction) (signedTx, hash string, err error) {
signer := types.HomesteadSigner{}
//signer := types.HomesteadSigner{}
signer := types.NewEIP155Signer(big.NewInt(256))
txhash := signer.Hash(tx)
signature, err := crypto.Sign(txhash.Bytes(), key)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment