Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirarthurmoney committed Nov 8, 2023
1 parent cf4348d commit e0db24f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/oft/v2/NativeOFTWithFee.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ describe("NativeOFTWithFee: ", function () {
let nativeFee = (await nativeOFTWithFee.estimateSendFee(remoteChainId, aliceAddressBytes32, totalAmount, false, defaultAdapterParams))
.nativeFee


let ld2sdRate = 10 ** (18 - sharedDecimals)
let dust = totalAmount.sub(fee).mod(ld2sdRate)
let totalMintAmount = (totalAmount.sub(fee)).sub(dust)
Expand Down Expand Up @@ -252,7 +251,7 @@ describe("NativeOFTWithFee: ", function () {
[owner.address, ethers.constants.AddressZero, defaultAdapterParams],
{ value: nativeFee.add(totalAmount.sub(depositAmount)) } // pass a msg.value to pay the LayerZero message fee
)
).to.be.revertedWith("BaseOFTWithFee: amount is less than minAmount")
).to.be.revertedWith("NativeOFTWithFee: amount is less than minAmount")

expect(await ethers.provider.getBalance(nativeOFTWithFee.address)).to.be.equal(depositAmount)
expect(await ethers.provider.getBalance(localEndpoint.address)).to.be.equal(0)
Expand Down

0 comments on commit e0db24f

Please sign in to comment.