Skip to content

Commit 12a54ef

Browse files
authored
Fix Struct decoding for null (#4112)
* Fix Struct decoding for null * CHANGELOG * 6.5.2
1 parent 9ae87be commit 12a54ef

File tree

14 files changed

+84
-91
lines changed

14 files changed

+84
-91
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# CHANGELOG
22

3-
## master
3+
## 6.5.2 Oct 26, 2021
4+
5+
Upgrade priority: Low. Recommended for users with `.at` queries on unknown blocks.
46

57
Changes:
68

79
- Adjust `toHuman` on `Call` to return names & (not only) values
810
- Allow for optional known `RuntimeVersion` to short-circuit `api.at`
11+
- Ensure `Struct` decodes fully on `null` input (equivalent to `undefined` & `{}`)
912

1013

1114
## 6.5.1 Oct 24, 2021

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"sideEffects": false,
1414
"type": "commonjs",
15-
"version": "6.5.2-3",
15+
"version": "6.5.2",
1616
"workspaces": [
1717
"packages/*"
1818
],
@@ -44,4 +44,4 @@
4444
"resolutions": {
4545
"typescript": "^4.4.4"
4646
}
47-
}
47+
}

packages/api-contract/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/api-contract",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/api-contract",
1615
"type": "git",
@@ -21,13 +20,13 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
28-
"@polkadot/api": "6.5.2-3",
29-
"@polkadot/types": "6.5.2-3",
27+
"@polkadot/api": "6.5.2",
28+
"@polkadot/types": "6.5.2",
3029
"@polkadot/util": "^7.6.1",
3130
"rxjs": "^7.4.0"
3231
}
33-
}
32+
}

packages/api-derive/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/api-derive",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/api-derive",
1615
"type": "git",
@@ -21,19 +20,19 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
28-
"@polkadot/api": "6.5.2-3",
29-
"@polkadot/rpc-core": "6.5.2-3",
30-
"@polkadot/types": "6.5.2-3",
27+
"@polkadot/api": "6.5.2",
28+
"@polkadot/rpc-core": "6.5.2",
29+
"@polkadot/types": "6.5.2",
3130
"@polkadot/util": "^7.6.1",
3231
"@polkadot/util-crypto": "^7.6.1",
3332
"rxjs": "^7.4.0"
3433
},
3534
"devDependencies": {
3635
"@polkadot/keyring": "^7.6.1",
37-
"@polkadot/rpc-provider": "6.5.2-3"
36+
"@polkadot/rpc-provider": "6.5.2"
3837
}
39-
}
38+
}

packages/api/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/api",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/api",
1615
"type": "git",
@@ -21,19 +20,19 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
28-
"@polkadot/api-derive": "6.5.2-3",
27+
"@polkadot/api-derive": "6.5.2",
2928
"@polkadot/keyring": "^7.6.1",
30-
"@polkadot/rpc-core": "6.5.2-3",
31-
"@polkadot/rpc-provider": "6.5.2-3",
32-
"@polkadot/types": "6.5.2-3",
33-
"@polkadot/types-known": "6.5.2-3",
29+
"@polkadot/rpc-core": "6.5.2",
30+
"@polkadot/rpc-provider": "6.5.2",
31+
"@polkadot/types": "6.5.2",
32+
"@polkadot/types-known": "6.5.2",
3433
"@polkadot/util": "^7.6.1",
3534
"@polkadot/util-crypto": "^7.6.1",
3635
"eventemitter3": "^4.0.7",
3736
"rxjs": "^7.4.0"
3837
}
39-
}
38+
}

packages/rpc-core/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/rpc-core",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/rpc-core",
1615
"type": "git",
@@ -21,16 +20,16 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
28-
"@polkadot/rpc-provider": "6.5.2-3",
29-
"@polkadot/types": "6.5.2-3",
27+
"@polkadot/rpc-provider": "6.5.2",
28+
"@polkadot/types": "6.5.2",
3029
"@polkadot/util": "^7.6.1",
3130
"rxjs": "^7.4.0"
3231
},
3332
"devDependencies": {
3433
"@polkadot/keyring": "^7.6.1"
3534
}
36-
}
35+
}

packages/rpc-provider/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/rpc-provider",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/rpc-provider",
1615
"type": "git",
@@ -21,11 +20,11 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
28-
"@polkadot/types": "6.5.2-3",
27+
"@polkadot/types": "6.5.2",
2928
"@polkadot/util": "^7.6.1",
3029
"@polkadot/util-crypto": "^7.6.1",
3130
"@polkadot/x-fetch": "^7.6.1",
@@ -35,8 +34,8 @@
3534
},
3635
"devDependencies": {
3736
"@polkadot/keyring": "^7.6.1",
38-
"@polkadot/types": "6.5.2-3",
37+
"@polkadot/types": "6.5.2",
3938
"mock-socket": "^9.0.6",
4039
"nock": "^13.1.4"
4140
}
42-
}
41+
}

packages/typegen/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/typegen",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/typegen",
1615
"type": "git",
@@ -21,7 +20,7 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"bin": {
2726
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -34,10 +33,10 @@
3433
"@babel/core": "^7.15.8",
3534
"@babel/register": "^7.15.3",
3635
"@babel/runtime": "^7.15.4",
37-
"@polkadot/api": "6.5.2-3",
38-
"@polkadot/rpc-provider": "6.5.2-3",
39-
"@polkadot/types": "6.5.2-3",
40-
"@polkadot/types-support": "6.5.2-3",
36+
"@polkadot/api": "6.5.2",
37+
"@polkadot/rpc-provider": "6.5.2",
38+
"@polkadot/types": "6.5.2",
39+
"@polkadot/types-support": "6.5.2",
4140
"@polkadot/util": "^7.6.1",
4241
"handlebars": "^4.7.7",
4342
"websocket": "^1.0.34",
@@ -47,4 +46,4 @@
4746
"@types/websocket": "^1.0.4",
4847
"@types/yargs": "^17.0.4"
4948
}
50-
}
49+
}

packages/types-known/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/types-known",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/types-known",
1615
"type": "git",
@@ -21,12 +20,12 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
2827
"@polkadot/networks": "^7.6.1",
29-
"@polkadot/types": "6.5.2-3",
28+
"@polkadot/types": "6.5.2",
3029
"@polkadot/util": "^7.6.1"
3130
}
32-
}
31+
}

packages/types-support/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"license": "Apache-2.0",
1111
"maintainers": [],
1212
"name": "@polkadot/types-support",
13-
"private": false,
1413
"repository": {
1514
"directory": "packages/types-support",
1615
"type": "git",
@@ -21,10 +20,10 @@
2120
"./detectPackage.cjs"
2221
],
2322
"type": "module",
24-
"version": "6.5.2-3",
23+
"version": "6.5.2",
2524
"main": "index.js",
2625
"dependencies": {
2726
"@babel/runtime": "^7.15.4",
2827
"@polkadot/util": "^7.6.1"
2928
}
30-
}
29+
}

0 commit comments

Comments
 (0)