Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigBalthazar committed Jul 10, 2024
1 parent 0455480 commit 0b65b35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ We are working on a solution to use `npm` to install OpenGem Contracts and impor
│ └── paymentSplitter
└── tokens
└── jetton
├── JettonMaster
├── JettonWallet
├── Jetton
└── extensions
├── maxSupply(in progress)
└── approveable(in progress)
Expand Down
13 changes: 6 additions & 7 deletions tests/tokens/jetton/Jetton.behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function shouldBehaveLikeBasicJetton(): void {

it('should deploy', async () => {
// the check is done inside beforeEach
// blockchain and nFTCollection are ready to use
});

it('should init correctly', async () => {
Expand Down Expand Up @@ -205,7 +204,7 @@ export function shouldBehaveLikeBasicJetton(): void {
const bob_wallet = await jettonMaster.getGetWalletAddress(bob.address);
const bobJettonWallet = blockchain.openContract(await JettonWalletImp.fromAddress(bob_wallet));

const aliceBalanceBefore = (await bobJettonWallet.getGetWalletData()).balance;
const bobBalanceBefore = (await bobJettonWallet.getGetWalletData()).balance;

const burnResult = await bobJettonWallet.send(bob.getSender(), { value: toNano('0.15') }, burnMessage);

Expand All @@ -215,23 +214,23 @@ export function shouldBehaveLikeBasicJetton(): void {
success: true,
});

// Check that Alice's jetton wallet send JettonBurnNotification msg to JettonMaster
// Check that Bob's jetton wallet send JettonBurnNotification msg to JettonMaster
expect(burnResult.transactions).toHaveTransaction({
from: bobJettonWallet.address,
to: jettonMaster.address,
success: true,
});

// Check that JettonMaster send JettonExcesses msg to Alice
// Check that JettonMaster send JettonExcesses msg to Bob
expect(burnResult.transactions).toHaveTransaction({
from: jettonMaster.address,
to: bob.address,
success: true,
});

// Check that Alice's jetton wallet balance is subtracted 1
const aliceBalanceAfter = (await bobJettonWallet.getGetWalletData()).balance;
expect(aliceBalanceAfter).toEqual(aliceBalanceBefore - toNano("20"));
// Check that Bob's jetton wallet balance is subtracted 1
const bobBalanceAfter = (await bobJettonWallet.getGetWalletData()).balance;
expect(bobBalanceAfter).toEqual(bobBalanceBefore - toNano("20"));

});
}

0 comments on commit 0b65b35

Please sign in to comment.