From 5f4218ba1c8f53ecc050a3a214000bd946ce6965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 16 Oct 2023 13:09:54 +0200 Subject: [PATCH] fix: use increaseAllowance for token approving (#565) --- codex/contracts/market.nim | 2 +- vendor/nim-ethers | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex/contracts/market.nim b/codex/contracts/market.nim index c9a231d5..c69d5e2d 100644 --- a/codex/contracts/market.nim +++ b/codex/contracts/market.nim @@ -36,7 +36,7 @@ proc approveFunds(market: OnChainMarket, amount: UInt256) {.async.} = let tokenAddress = await market.contract.token() let token = Erc20Token.new(tokenAddress, market.signer) - discard await token.approve(market.contract.address(), amount).confirm(1) + discard await token.increaseAllowance(market.contract.address(), amount).confirm(1) method getSigner*(market: OnChainMarket): Future[Address] {.async.} = return await market.signer.getAddress() diff --git a/vendor/nim-ethers b/vendor/nim-ethers index 8fff6310..620b402a 160000 --- a/vendor/nim-ethers +++ b/vendor/nim-ethers @@ -1 +1 @@ -Subproject commit 8fff63102a3461ddec61714df80840740eaade1f +Subproject commit 620b402a7d33385ae8e2cb5677e9f6dce9724acb