File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/token/ERC7984/extensions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ describe('ERC7984Wrapper', function () {
8787
8888 const rate = await this . wrapper . rate ( ) ;
8989 const maxConfidentialSupply = await this . wrapper . maxTotalSupply ( ) ;
90- const maxUnderlyingSupply = maxConfidentialSupply * rate ;
90+ const maxUnderlyingBalance = maxConfidentialSupply * rate ;
9191
9292 if ( viaCallback ) {
93- await this . token . connect ( this . holder ) . transferAndCall ( this . wrapper , maxUnderlyingSupply ) ;
93+ await this . token . connect ( this . holder ) . transferAndCall ( this . wrapper , maxUnderlyingBalance ) ;
9494 } else {
95- await this . wrapper . connect ( this . holder ) . wrap ( this . holder . address , maxUnderlyingSupply ) ;
95+ await this . wrapper . connect ( this . holder ) . wrap ( this . holder . address , maxUnderlyingBalance ) ;
9696 }
9797
9898 await expect (
@@ -110,10 +110,10 @@ describe('ERC7984Wrapper', function () {
110110
111111 const rate = await this . wrapper . rate ( ) ;
112112 const maxConfidentialSupply = await this . wrapper . maxTotalSupply ( ) ;
113- const maxUnderlyingSupply = maxConfidentialSupply * rate ;
113+ const maxUnderlyingBalance = maxConfidentialSupply * rate ;
114114
115115 // first deposit close to the max
116- await this . wrapper . connect ( this . holder ) . wrap ( this . holder . address , maxUnderlyingSupply ) ;
116+ await this . wrapper . connect ( this . holder ) . wrap ( this . holder . address , maxUnderlyingBalance ) ;
117117
118118 // try to deposit more, causing the total supply to exceed the max supported amount
119119 await expect (
You can’t perform that action at this time.
0 commit comments