Skip to content

Commit

Permalink
Fix write contract (#208)
Browse files Browse the repository at this point in the history
* fix: add isPrivyCrossApp to writeContract

* test; changeset

* remove object.assign

* revert
  • Loading branch information
coffeexcoin authored Jan 26, 2025
1 parent 7de8115 commit 97015f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thick-buckets-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@abstract-foundation/agw-client': patch
---

Correctly pass isPrivyCrossApp flag to writeContract
1 change: 1 addition & 0 deletions packages/agw-client/src/walletActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export function globalWalletActions<
ChainEIP712,
Account
>,
isPrivyCrossApp,
),
toSessionClient: (signer, session) =>
toSessionClient({
Expand Down
1 change: 1 addition & 0 deletions packages/agw-client/test/src/walletActions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ describe('globalWalletActions', () => {
mockSignerClient,
mockPublicClient,
mockArgs,
false,
);
});

Expand Down

0 comments on commit 97015f9

Please sign in to comment.