File tree 1 file changed +11
-3
lines changed 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ const { ethers } = require('hardhat');
2
2
const { expect } = require ( 'chai' ) ;
3
3
const { loadFixture } = require ( '@nomicfoundation/hardhat-network-helpers' ) ;
4
4
const {
5
+ CALL_TYPE_CALL ,
6
+ CALL_TYPE_BATCH ,
7
+ CALL_TYPE_DELEGATE ,
5
8
EXEC_TYPE_DEFAULT ,
6
9
EXEC_TYPE_TRY ,
7
10
encodeSingle,
8
11
encodeBatch,
9
12
encodeDelegate,
10
- CALL_TYPE_CALL ,
11
- CALL_TYPE_BATCH ,
12
- CALL_TYPE_DELEGATE ,
13
13
encodeMode,
14
14
} = require ( '../../helpers/erc7579' ) ;
15
15
const { selector } = require ( '../../helpers/methods' ) ;
@@ -30,6 +30,14 @@ describe('ERC7579Utils', function () {
30
30
Object . assign ( this , await loadFixture ( fixture ) ) ;
31
31
} ) ;
32
32
33
+ it ( 'constants' , async function ( ) {
34
+ await expect ( this . utils . $CALLTYPE_SINGLE ( ) ) . to . eventually . equal ( CALL_TYPE_CALL ) ;
35
+ await expect ( this . utils . $CALLTYPE_BATCH ( ) ) . to . eventually . equal ( CALL_TYPE_BATCH ) ;
36
+ await expect ( this . utils . $CALLTYPE_DELEGATECALL ( ) ) . to . eventually . equal ( CALL_TYPE_DELEGATE ) ;
37
+ await expect ( this . utils . $EXECTYPE_DEFAULT ( ) ) . to . eventually . equal ( EXEC_TYPE_DEFAULT ) ;
38
+ await expect ( this . utils . $EXECTYPE_TRY ( ) ) . to . eventually . equal ( EXEC_TYPE_TRY ) ;
39
+ } ) ;
40
+
33
41
describe ( 'execSingle' , function ( ) {
34
42
it ( 'calls the target with value' , async function ( ) {
35
43
const value = 0x012 ;
You can’t perform that action at this time.
0 commit comments