Skip to content

Commit 2fa3309

Browse files
committed
fix: πŸ› developer testing initial polyx
1 parent 2d62064 commit 2fa3309

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"postgres:dev:migration:run": "source ./postgres.dev.config && yarn postgres migration:run",
3636
"postgres:dev:migration:revert": "source ./postgres.dev.config && yarn postgres migration:revert",
3737
"postgres:migration:run": "yarn postgres migration:run",
38-
"docker:build": "docker build -t polymeshassociation/polymesh-rest-api:local .",
39-
"docker:build:no-cache": "docker build --no-cache -t polymeshassociation/polymesh-rest-api:local ."
38+
"docker:build": "yarn build && docker build -t polymeshassociation/polymesh-rest-api:local .",
39+
"docker:build:no-cache": "yarn build && docker build --no-cache -t polymeshassociation/polymesh-rest-api:local ."
4040
},
4141
"dependencies": {
4242
"@golevelup/ts-jest": "0.3.3",

β€Žsrc/developer-testing/developer-testing.service.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class DeveloperTestingService {
7878
const initialPolyxCalls = accounts
7979
.filter(({ initialPolyx }) => initialPolyx.gt(0))
8080
.map(({ address, initialPolyx }) =>
81-
balances.transferWithMemo(address, initialPolyx.toNumber() * unitsPerPolyx, 'Initial Polyx')
81+
balances.transfer(address, initialPolyx.toNumber() * unitsPerPolyx)
8282
);
8383

8484
await this.polymeshService.execTransaction(signerAddress, utility.batchAll, [

β€Žsrc/test-utils/mocks.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export class MockPolymesh {
145145
public _polkadotApi = {
146146
tx: {
147147
balances: {
148+
transfer: jest.fn(),
148149
transferWithMemo: jest.fn(),
149150
setBalance: jest.fn(),
150151
},
@@ -164,6 +165,7 @@ export class MockPolymesh {
164165
}),
165166
},
166167
utility: {
168+
batch: jest.fn(),
167169
batchAll: jest.fn(),
168170
},
169171
},

0 commit comments

Comments
Β (0)