Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 58b01bf

Browse files
vovachaironoa
andauthored
Bump @polkadot/api: update transfer, fix CI (#170)
* Bump polkadot-api, update transfer, fix ci * Update README.md * Update README.md * Bump polkadot version, update node image * Update README.md * Update README.md * Bump test-utils --------- Co-authored-by: Alessio Onori <alessio.onori@gmail.com>
1 parent eedfde0 commit 58b01bf

4 files changed

Lines changed: 477 additions & 593 deletions

File tree

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ version: 2
33
jobs:
44
test:
55
docker:
6-
- image: web3f/node:v1
6+
- image: web3f/node-dind:v3
77
- image: parity/polkadot:latest
88
name: polkadot
9-
command: --chain=kusama-dev --ws-port 11000 --alice --ws-external --rpc-methods=Unsafe --rpc-cors=all
9+
command: --dev --rpc-port 11000 --rpc-external
1010
steps:
1111
- checkout
1212
- run: yarn

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@w3f/polkadot-api-client",
3-
"version": "1.2.28",
3+
"version": "1.3.0",
44
"description": "Polkaddot API client",
55
"repository": "git@github.com:w3f/polkadot-api-client-ts.git",
66
"author": "W3F Infrastructure Team <devops@web3.foundation>",
@@ -19,7 +19,7 @@
1919
"start": "node ./dist/src/index.js start"
2020
},
2121
"dependencies": {
22-
"@polkadot/api": "^9.4.2",
22+
"@polkadot/api": "^12.0.1",
2323
"@w3f/logger": "^0.4.2",
2424
"async-wait-until": "^1.2.6",
2525
"fs-extra": "^9.0.1"
@@ -31,7 +31,7 @@
3131
"@types/tmp": "^0.2.2",
3232
"@typescript-eslint/eslint-plugin": "^2.25.0",
3333
"@typescript-eslint/parser": "^2.25.0",
34-
"@w3f/test-utils": "^1.2.30",
34+
"@w3f/test-utils": "^1.4.0",
3535
"chai": "^4.2.0",
3636
"eslint": "^7.32.0",
3737
"mocha": "^9.1.2",

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Client implements ApiClient {
7070
const account = await this.getAccountBalances(senderKeyPair.address);
7171
let transfer;
7272
if(isKeepAliveForced) transfer = this._api.tx.balances.transferKeepAlive(recipentAddress, amount);
73-
else transfer = this._api.tx.balances.transfer(recipentAddress, amount);
73+
else transfer = this._api.tx.balances.transferAllowDeath(recipentAddress, amount);
7474
const transferOptions = {
7575
blockHash: this._api.genesisHash,
7676
era,

0 commit comments

Comments
 (0)