Skip to content

Commit

Permalink
Fixed one more missed line
Browse files Browse the repository at this point in the history
  • Loading branch information
datorikasinstitutsdivi committed Jul 16, 2024
1 parent 8a69716 commit 50a0b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RankifyPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class RankifyPlayer extends RankifyBase {
*/
approveTokensIfNeeded = async (value: BigNumberish) => {
if (ethers.BigNumber.from(value).gt(0)) {
return this.getContract("Rankify")
return this.getContract("Rankify").connect(this.signer)
.increaseAllowance(
getArtifact(this.chain, "RankifyInstance").address,
value
Expand Down

0 comments on commit 50a0b32

Please sign in to comment.