Skip to content

Commit

Permalink
Bump API (polkadot-js#6954)
Browse files Browse the repository at this point in the history
* Bump API

* Adjust formatInspect

* lint fix
  • Loading branch information
jacogr authored Feb 9, 2022
1 parent 13ef3db commit 335de54
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 159 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,24 @@
"webpack-cli": "^4.9.2"
},
"resolutions": {
"@polkadot/api": "^7.7.2-9",
"@polkadot/api-augment": "^7.7.2-9",
"@polkadot/api-base": "^7.7.2-9",
"@polkadot/api-contract": "^7.7.2-9",
"@polkadot/api-derive": "^7.7.2-9",
"@polkadot/api": "^7.7.2-11",
"@polkadot/api-augment": "^7.7.2-11",
"@polkadot/api-base": "^7.7.2-11",
"@polkadot/api-contract": "^7.7.2-11",
"@polkadot/api-derive": "^7.7.2-11",
"@polkadot/hw-ledger": "^8.3.4-10",
"@polkadot/keyring": "^8.3.4-10",
"@polkadot/networks": "^8.3.4-10",
"@polkadot/phishing": "^0.8.141",
"@polkadot/rpc-augment": "^7.7.2-9",
"@polkadot/rpc-core": "^7.7.2-9",
"@polkadot/rpc-provider": "^7.7.2-9",
"@polkadot/types": "^7.7.2-9",
"@polkadot/types-augment": "^7.7.2-9",
"@polkadot/types-codec": "^7.7.2-9",
"@polkadot/types-create": "^7.7.2-9",
"@polkadot/types-known": "^7.7.2-9",
"@polkadot/types-support": "^7.7.2-9",
"@polkadot/rpc-augment": "^7.7.2-11",
"@polkadot/rpc-core": "^7.7.2-11",
"@polkadot/rpc-provider": "^7.7.2-11",
"@polkadot/types": "^7.7.2-11",
"@polkadot/types-augment": "^7.7.2-11",
"@polkadot/types-codec": "^7.7.2-11",
"@polkadot/types-create": "^7.7.2-11",
"@polkadot/types-known": "^7.7.2-11",
"@polkadot/types-support": "^7.7.2-11",
"@polkadot/util": "^8.3.4-10",
"@polkadot/util-crypto": "^8.3.4-10",
"@polkadot/wasm-crypto": "^4.5.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/apps-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"@metaverse-network-sdk/type-definitions": "^0.0.1-6",
"@parallel-finance/type-definitions": "1.4.4",
"@phala/typedefs": "0.2.30",
"@polkadot/api": "^7.7.2-9",
"@polkadot/api-derive": "^7.7.2-9",
"@polkadot/api": "^7.7.2-11",
"@polkadot/api-derive": "^7.7.2-11",
"@polkadot/networks": "^8.3.4-10",
"@polkadot/types": "^7.7.2-9",
"@polkadot/types": "^7.7.2-11",
"@polkadot/util": "^8.3.4-10",
"@polkadot/x-fetch": "^8.3.4-10",
"@polymathnetwork/polymesh-types": "0.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/page-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"version": "0.105.2-11",
"dependencies": {
"@babel/runtime": "^7.17.0",
"@polkadot/api-contract": "^7.7.2-9"
"@polkadot/api-contract": "^7.7.2-11"
}
}
12 changes: 9 additions & 3 deletions packages/page-extrinsics/src/DecodedInspect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ interface Inspected {
value: string;
}

function formatInspect ({ inner, name = '', value }: Inspect, result: Inspected[] = []): Inspected[] {
if (value && value.length) {
result.push({ name, value: u8aToHex(value, undefined, false) });
function formatInspect ({ inner = [], name = '', outer = [] }: Inspect, result: Inspected[] = []): Inspected[] {
if (outer.length) {
const value = new Array<string>(outer.length);

for (let i = 0; i < outer.length; i++) {
value[i] = u8aToHex(outer[i], undefined, false);
}

result.push({ name, value: value.join(' ') });
}

for (let i = 0; i < inner.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": "0.105.2-11",
"dependencies": {
"@babel/runtime": "^7.17.0",
"@polkadot/api": "^7.7.2-9",
"@polkadot/api": "^7.7.2-11",
"@polkadot/extension-compat-metamask": "^0.42.8-3",
"@polkadot/extension-dapp": "^0.42.8-3",
"@substrate/connect": "0.4.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"testcontainers": "^8.2.0"
},
"devDependencies": {
"@polkadot/types-support": "^7.7.2-9",
"@polkadot/types-support": "^7.7.2-11",
"@testing-library/jest-dom": "^5.16.2",
"tsconfig-paths": "^3.12.0"
}
Expand Down
Loading

0 comments on commit 335de54

Please sign in to comment.