Skip to content

Commit

Permalink
fixed unnecessary allowance increase
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 20, 2024
1 parent a85bde7 commit d191075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const makeUsePublishProposal =

// Request to increase the contract's allowance for the proposal
// deposit if needed.
if (remainingAllowanceNeeded) {
if (remainingAllowanceNeeded.isPositive()) {
try {
await increaseCw20DepositAllowance({
amount: remainingAllowanceNeeded.toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const makeUsePublishProposal =

// Request to increase the contract's allowance for the proposal
// deposit if needed.
if (remainingAllowanceNeeded) {
if (remainingAllowanceNeeded.isPositive()) {
try {
await increaseCw20DepositAllowance({
amount: remainingAllowanceNeeded.toString(),
Expand Down

0 comments on commit d191075

Please sign in to comment.