Skip to content

Commit 14799bf

Browse files
committed
comment clarification
1 parent 8a2e7a6 commit 14799bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/token/ERC7984/extensions/ERC7984Wrapper.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)