Skip to content

Commit 18cd1b8

Browse files
committed
chore: fix delegate-action test
1 parent 0442063 commit 18cd1b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/delegate-action/src/delegate-action.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@ describe("Boost with Delegate Action Incentive", () => {
150150
address: boostImpostor,
151151
value: parseEther("10"),
152152
});
153-
const testReceipt = await walletClient.sendTransaction({
153+
const hash = await walletClient.sendTransaction({
154154
data: inputData,
155155
account: boostImpostor,
156156
to: targetContract,
157157
value: 0n,
158158
});
159159

160160
// Make sure that the transaction was sent as expected and validates the action
161-
expect(testReceipt).toBeDefined();
162-
const validation = await action.validateActionSteps();
161+
expect(hash).toBeDefined();
162+
const validation = await action.validateActionSteps({ hash });
163163
expect(validation).toBe(true);
164164
// Generate the signature using the trusted signer
165165
const claimDataPayload = await boost.validator.encodeClaimData({

0 commit comments

Comments
 (0)