Skip to content

Commit 930b7d3

Browse files
committed
Update e2e test suite to use new interface
1 parent b6cacb0 commit 930b7d3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/delegator-e2e/test/addP256KeyHybridDeleGator.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('maincase: Change the keys on a deployed gator', async () => {
7979

8080
const aliceContract = getContract({
8181
address,
82-
abi: HybridDeleGator.abi,
82+
abi: HybridDeleGator,
8383
client: publicClient,
8484
});
8585

@@ -96,7 +96,7 @@ test('maincase: Change the keys on a deployed gator', async () => {
9696
{
9797
to: aliceContract.address,
9898
data: encodeFunctionData({
99-
abi: HybridDeleGator.abi,
99+
abi: HybridDeleGator,
100100
functionName: 'addKey',
101101
args: [KEY_ID, P256_X, P256_Y],
102102
}),

packages/delegator-e2e/test/caveats/allowedMethods.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ const runScopeTest_expectFailure = async (
384384
target: aliceCounter.address,
385385
value: 0n,
386386
callData: encodeFunctionData({
387-
abi: CounterMetadata.abi as AbiFunction[],
387+
abi: CounterMetadata.abi,
388388
functionName: 'setCount',
389389
args: [42n],
390390
}),

packages/delegator-e2e/test/caveats/nonce.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ const incrementNonce = async () => {
258258
{
259259
to: environment.caveatEnforcers.NonceEnforcer!,
260260
data: encodeFunctionData({
261-
abi: NonceEnforcer.abi,
261+
abi: NonceEnforcer,
262262
functionName: 'incrementNonce',
263263
args: [environment.DelegationManager],
264264
}),
@@ -397,7 +397,7 @@ describe('NonceEnforcer Contract Read Methods', () => {
397397
{
398398
to: charlieSmartAccount.environment.caveatEnforcers.NonceEnforcer!,
399399
data: encodeFunctionData({
400-
abi: NonceEnforcer.abi,
400+
abi: NonceEnforcer,
401401
functionName: 'incrementNonce',
402402
args: [charlieSmartAccount.environment.DelegationManager],
403403
}),
@@ -461,7 +461,7 @@ describe('NonceEnforcer Contract Read Methods', () => {
461461
test('encode function produces correct calldata for incrementNonce', async () => {
462462
// Test the encode utility function
463463
const expectedCalldata = encodeFunctionData({
464-
abi: NonceEnforcer.abi,
464+
abi: NonceEnforcer,
465465
functionName: 'incrementNonce',
466466
args: [aliceSmartAccount.environment.DelegationManager],
467467
});

packages/delegator-e2e/test/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export type CounterContract = GetContractReturnType<
144144
export const deployCounter = async (owner: Hex) => {
145145
// Deploy the counter contract using Viem's deployContract
146146
const hash = await deployerClient.deployContract({
147-
abi: CounterMetadata.abi as Abi,
147+
abi: CounterMetadata.abi,
148148
bytecode: CounterMetadata.bytecode.object as Hex,
149149
});
150150

0 commit comments

Comments
 (0)