@@ -4,10 +4,7 @@ import type { Address } from 'viem';
44import { encodeFunctionData } from 'viem' ;
55
66import { encodeCallsForCaller } from '../src/encodeCalls' ;
7- import {
8- BATCH_DEFAULT_MODE ,
9- encodeExecutionCalldatas ,
10- } from '../src/executions' ;
7+ import { ExecutionMode , encodeExecutionCalldatas } from '../src/executions' ;
118import type { ExecutionStruct } from '../src/executions' ;
129import { type Call } from '../src/types' ;
1310
@@ -74,7 +71,7 @@ describe('encodeCallsForCaller', () => {
7471 const expectedEncodedCalls = encodeFunctionData ( {
7572 abi : DeleGatorCore . abi ,
7673 functionName : 'execute' ,
77- args : [ BATCH_DEFAULT_MODE , expectedExecutionCalldata ] ,
74+ args : [ ExecutionMode . BatchDefault , expectedExecutionCalldata ] ,
7875 } ) ;
7976
8077 expect ( encodedCalls ) . to . equal ( expectedEncodedCalls ) ;
@@ -118,7 +115,7 @@ describe('encodeCallsForCaller', () => {
118115 const expectedEncodedCalls = encodeFunctionData ( {
119116 abi : DeleGatorCore . abi ,
120117 functionName : 'execute' ,
121- args : [ BATCH_DEFAULT_MODE , expectedExecutionCalldata ] ,
118+ args : [ ExecutionMode . BatchDefault , expectedExecutionCalldata ] ,
122119 } ) ;
123120
124121 expect ( encodedCalls ) . to . equal ( expectedEncodedCalls ) ;
@@ -162,7 +159,7 @@ describe('encodeCallsForCaller', () => {
162159 const expectedEncodedCalls = encodeFunctionData ( {
163160 abi : DeleGatorCore . abi ,
164161 functionName : 'execute' ,
165- args : [ BATCH_DEFAULT_MODE , expectedExecutionCalldata ] ,
162+ args : [ ExecutionMode . BatchDefault , expectedExecutionCalldata ] ,
166163 } ) ;
167164
168165 expect ( encodedCalls ) . to . equal ( expectedEncodedCalls ) ;
0 commit comments