Skip to content

Commit 89bcb92

Browse files
committed
[SDK] Test: Replace deprecated checkContractWalletSignature use (#4949)
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on updating the function used to verify wallet signatures in the `smart-wallet-integration.test.ts` file. The change improves clarity by renaming `checkContractWalletSignature` to `verifySignature` and modifies the way the contract is obtained. ### Detailed summary - Renamed the function from `checkContractWalletSignature` to `verifySignature`. - Changed the way the contract is constructed by removing the `getContract` call and directly using the parameters `address`, `chain`, and `client`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 74cd019 commit 89bcb92

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/thirdweb/src/wallets/smart/smart-wallet-integration.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,12 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
225225
client,
226226
});
227227
expect(isValidV1).toEqual(true);
228-
const isValidV2 = await checkContractWalletSignature({
228+
const isValidV2 = await verifySignature({
229229
message,
230230
signature,
231-
contract: getContract({
232-
address: newAccount.address,
233-
chain,
234-
client,
235-
}),
231+
address: newAccount.address,
232+
chain,
233+
client,
236234
});
237235
expect(isValidV2).toEqual(true);
238236

0 commit comments

Comments
 (0)