Skip to content

Commit 07f7a66

Browse files
committed
fix approval functions
1 parent 39f83b7 commit 07f7a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/runner/evm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (r *E2ERunner) ApproveERC20OnEVM(allowed ethcommon.Address) {
185185
// check if allowance is zero before calling this method
186186
// allow a high amount to avoid multiple approvals
187187
func (r *E2ERunner) ApproveETHZRC20(allowed ethcommon.Address) {
188-
allowance, err := r.ETHZRC20.Allowance(&bind.CallOpts{}, r.Account.EVMAddress(), r.GatewayEVMAddr)
188+
allowance, err := r.ETHZRC20.Allowance(&bind.CallOpts{}, r.Account.EVMAddress(), allowed)
189189
require.NoError(r, err)
190190

191191
// approve 1M*1e18 if allowance is below 1k
@@ -202,7 +202,7 @@ func (r *E2ERunner) ApproveETHZRC20(allowed ethcommon.Address) {
202202
// check if allowance is zero before calling this method
203203
// allow a high amount to avoid multiple approvals
204204
func (r *E2ERunner) ApproveERC20ZRC20(allowed ethcommon.Address) {
205-
allowance, err := r.ERC20ZRC20.Allowance(&bind.CallOpts{}, r.Account.EVMAddress(), r.GatewayEVMAddr)
205+
allowance, err := r.ERC20ZRC20.Allowance(&bind.CallOpts{}, r.Account.EVMAddress(), allowed)
206206
require.NoError(r, err)
207207

208208
// approve 1M*1e18 if allowance is below 1k

0 commit comments

Comments
 (0)