From beb8011b4c854e618a7057755e7b5f1788b19fba Mon Sep 17 00:00:00 2001 From: Jaco Date: Tue, 4 May 2021 12:15:38 +0300 Subject: [PATCH] Adjust ContractInfo types (#3484) --- CHANGELOG.md | 1 + packages/types/src/interfaces/contracts/definitions.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1999e805c5..49c5b8f074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Changes: - Additional Xcm types - Adjust parachain types - Remove error logging on createType (details passed in error) +- Adjust `ContractInfo` type as per latest Substrate - Adjust re-encoding of `BitVec` based on decoded length diff --git a/packages/types/src/interfaces/contracts/definitions.ts b/packages/types/src/interfaces/contracts/definitions.ts index d59403703f..e312ec6709 100644 --- a/packages/types/src/interfaces/contracts/definitions.ts +++ b/packages/types/src/interfaces/contracts/definitions.ts @@ -65,10 +65,10 @@ export default { AliveContractInfo: { trieId: 'TrieId', storageSize: 'u32', - emptyPairCount: 'u32', - totalPairCount: 'u32', + pairCount: 'u32', codeHash: 'CodeHash', rentAllowance: 'Balance', + rentPaid: 'Balance', deductBlock: 'BlockNumber', lastWrite: 'Option', _reserved: 'Option'