Skip to content

Commit

Permalink
updated wrapper and test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabcotech committed Jul 24, 2024
1 parent 82b893e commit 5d3e42c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/PingPong2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('[PingPong2]', () => {
code = await compile('PingPong2');
blockchain = await Blockchain.create();
user1 = await blockchain.treasury('user1');
console.log(user1.address);
pingPong2Contract = blockchain.openContract(
PingPong2.createFromConfig({}, code)
);
Expand Down
10 changes: 8 additions & 2 deletions wrappers/PingPong2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ import {
} from '@ton/core';

export function pingPong2ConfigToCell(): Cell {
const forwardPayload = beginCell().storeStringTail('ping').endCell();
return beginCell().storeRef(forwardPayload).endCell();
return beginCell()
.storeRef(beginCell().storeStringTail('ping').endCell())
.storeRef(
beginCell()
.storeStringTail('EQCGetaGEWP4PhqPSV71o4NaU3rcw5yAG7kh7s1VdtGGynTA')
.endCell()
)
.endCell();
}

export class PingPong2 implements Contract {
Expand Down

0 comments on commit 5d3e42c

Please sign in to comment.