Skip to content

Commit f67a88a

Browse files
committed
changes ContractMetadataV5 field to u64 from Text
1 parent f88fcf7 commit f67a88a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/api-contract/src/test/contracts/ink/v5/erc20.contract.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/api-contract/src/test/contracts/ink/v5/erc20.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,5 +1020,5 @@
10201020
}
10211021
}
10221022
],
1023-
"version": "5"
1023+
"version": 5
10241024
}

packages/api-contract/src/test/contracts/ink/v5/flipper.contract.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/api-contract/src/test/contracts/ink/v5/flipper.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,5 +415,5 @@
415415
}
416416
}
417417
],
418-
"version": "5"
418+
"version": 5
419419
}

packages/types/src/interfaces/contractsAbi/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default {
259259
ContractMetadataV5: {
260260
types: 'Vec<PortableType>',
261261
spec: 'ContractContractSpecV5',
262-
version: 'Text'
262+
version: 'u64'
263263
},
264264
ContractMetadata: {
265265
_enum: {

packages/types/src/interfaces/contractsAbi/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export interface ContractMetadataV4 extends Struct {
346346
export interface ContractMetadataV5 extends Struct {
347347
readonly types: Vec<PortableType>;
348348
readonly spec: ContractContractSpecV5;
349-
readonly version: '5';
349+
readonly version: 5;
350350
}
351351

352352
/** @name ContractProject */

0 commit comments

Comments
 (0)