Commit b68d0418 authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix: gas limits (#2101)

parent 0f889d8d
...@@ -72,7 +72,7 @@ func (c *postageContract) sendApproveTransaction(ctx context.Context, amount *bi ...@@ -72,7 +72,7 @@ func (c *postageContract) sendApproveTransaction(ctx context.Context, amount *bi
To: &c.bzzTokenAddress, To: &c.bzzTokenAddress,
Data: callData, Data: callData,
GasPrice: sctx.GetGasPrice(ctx), GasPrice: sctx.GetGasPrice(ctx),
GasLimit: 0, GasLimit: 65000,
Value: big.NewInt(0), Value: big.NewInt(0),
}) })
if err != nil { if err != nil {
...@@ -102,7 +102,7 @@ func (c *postageContract) sendCreateBatchTransaction(ctx context.Context, owner ...@@ -102,7 +102,7 @@ func (c *postageContract) sendCreateBatchTransaction(ctx context.Context, owner
To: &c.postageContractAddress, To: &c.postageContractAddress,
Data: callData, Data: callData,
GasPrice: sctx.GetGasPrice(ctx), GasPrice: sctx.GetGasPrice(ctx),
GasLimit: 0, GasLimit: 160000,
Value: big.NewInt(0), Value: big.NewInt(0),
} }
......
...@@ -326,7 +326,7 @@ func (s *service) Withdraw(ctx context.Context, amount *big.Int) (hash common.Ha ...@@ -326,7 +326,7 @@ func (s *service) Withdraw(ctx context.Context, amount *big.Int) (hash common.Ha
To: &s.address, To: &s.address,
Data: callData, Data: callData,
GasPrice: sctx.GetGasPrice(ctx), GasPrice: sctx.GetGasPrice(ctx),
GasLimit: 0, GasLimit: 95000,
Value: big.NewInt(0), Value: big.NewInt(0),
} }
......
...@@ -82,7 +82,7 @@ func (c *factory) Deploy(ctx context.Context, issuer common.Address, defaultHard ...@@ -82,7 +82,7 @@ func (c *factory) Deploy(ctx context.Context, issuer common.Address, defaultHard
To: &c.address, To: &c.address,
Data: callData, Data: callData,
GasPrice: sctx.GetGasPrice(ctx), GasPrice: sctx.GetGasPrice(ctx),
GasLimit: 0, GasLimit: 175000,
Value: big.NewInt(0), Value: big.NewInt(0),
} }
......
...@@ -80,7 +80,7 @@ func (c *erc20Service) Transfer(ctx context.Context, address common.Address, val ...@@ -80,7 +80,7 @@ func (c *erc20Service) Transfer(ctx context.Context, address common.Address, val
To: &c.address, To: &c.address,
Data: callData, Data: callData,
GasPrice: sctx.GetGasPrice(ctx), GasPrice: sctx.GetGasPrice(ctx),
GasLimit: 0, GasLimit: 90000,
Value: big.NewInt(0), Value: big.NewInt(0),
} }
......
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