Skip to content

Commit

Permalink
added async / await to balance approvals calls
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecd committed Jun 27, 2024
1 parent 11cf56a commit 352323a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/developer-docs/irys-sdk/balance-approvals.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const receipt = await irys.approval.createApproval({

## Upload using an approval

If you have available approvals, Irys will pick them up and use them automatically. In cases where you've been approved by more than one account, you can pick the one to use with:
If you have available approvals, Irys will use them automatically. In cases where you've been approved by more than one account, you can pick the one to use with:

```ts
const receipt = await irys.upload("GM World", { upload: { paidBy: "<address>" } });
Expand Down

0 comments on commit 352323a

Please sign in to comment.