Skip to content

Commit 76b764e

Browse files
committed
Fix tests
1 parent 8a2b476 commit 76b764e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/ton/src/TonNominatorPoolStaker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Address, toNano, fromNano } from '@ton/ton'
1+
import { Address, toNano, fromNano, TupleReader, TupleItem } from '@ton/ton'
22
import { defaultValidUntil, TonBaseStaker } from './TonBaseStaker'
33
import { NominatorInfo, UnsignedTx } from './types'
44

packages/ton/src/TonSingleNominatorPoolStaker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Address, toNano, Cell, beginCell, fromNano } from '@ton/ton'
1+
import { Address, toNano, Cell, beginCell, fromNano, TupleReader } from '@ton/ton'
22
import { defaultValidUntil, TonBaseStaker } from './TonBaseStaker'
33
import { NominatorInfo, UnsignedTx } from './types'
44

packages/ton/test/staker.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TonStaker } from '@chorus-one/ton'
1+
import { TonNominatorPoolStaker } from '@chorus-one/ton'
22
import { Address, TupleItem, TupleReader } from '@ton/core'
33
import { describe, it } from 'mocha'
44
import { use, assert, expect, spy } from 'chai'
@@ -12,7 +12,7 @@ use(spies)
1212
describe('TonStaker', () => {
1313
const delegatorAddress = '0QDsF87nkTYgkvu1z5xveCEGTRnZmEVaVT0gdxoeyaNvmoCr'
1414
const validatorAddress = 'kf8SWCvzf6eJK4Q0ZOe14PqDdsT5wk0_Ni0wAThL0cVorNVU'
15-
const staker = new TonStaker({
15+
const staker = new TonNominatorPoolStaker({
1616
rpcUrl: 'https://ton.fake.website',
1717
addressDerivationConfig: {
1818
walletContractVersion: 4,
@@ -75,7 +75,7 @@ describe('TonStaker', () => {
7575
})
7676

7777
it('should generate correct unsigned delegate tx', async () => {
78-
const { tx } = await staker.buildStakeNominatorPoolTx({
78+
const { tx } = await staker.buildStakeTx({
7979
delegatorAddress,
8080
validatorAddress,
8181
amount: '0.5'
@@ -103,7 +103,7 @@ describe('TonStaker', () => {
103103
const [amount, expectedAmount, expectedError] = testData
104104

105105
const runTest = async (amount: string): Promise<bigint> => {
106-
const { tx } = await staker.buildStakeNominatorPoolTx({
106+
const { tx } = await staker.buildStakeTx({
107107
delegatorAddress,
108108
validatorAddress,
109109
amount

0 commit comments

Comments
 (0)