Fix #437: Check require_not_paused before pending.require_auth() - #713
Fix #437: Check require_not_paused before pending.require_auth()#713pixels26 wants to merge 1 commit into
Conversation
|
@pixels26 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
a14afae to
d8ae74c
Compare
|
nice focused fix. moving two small notes:
heads up that #700 (issue #453) makes the identical reorder in the same function, so whichever lands first will conflict the other; this one is green so it likely goes first. please rebase on main and this can merge. |
…() in accept_campaign_transfer Move require_not_paused(env)? before pending.require_auth() so that users don't waste a signature on a paused contract.
d8ae74c to
8b809a5
Compare
|
@davidmaronio please check now |
Summary
In
src/campaigns/transfer.rs,accept_campaign_transferwas callingrequire_not_pausedafterpending.require_auth(), causing users to waste a signature when the contract is paused.Changes
require_not_paused(env)?beforepending.require_auth()so users are informed the contract is paused before being asked to sign.Close #437