Adjust Weight to u64 (#2181)

* Adjust Weight to u64

* Adjust copy (really should be reading folders...)

* build:interfaces

* EventRecord test expectation update
This commit is contained in:
Jaco Greeff
2020-04-16 13:08:46 +02:00
committed by GitHub
parent f4d976c337
commit d3d3bb9b5a
9 changed files with 30 additions and 16 deletions
@@ -85,7 +85,7 @@ export default {
},
StorageData: 'Bytes',
ValidatorId: 'AccountId',
Weight: 'u32',
Weight: 'u64',
WeightMultiplier: 'Fixed64',
// digest
@@ -187,7 +187,7 @@ export interface StorageData extends Bytes {}
export interface ValidatorId extends AccountId {}
/** @name Weight */
export interface Weight extends u32 {}
export interface Weight extends u64 {}
/** @name WeightMultiplier */
export interface WeightMultiplier extends Fixed64 {}
@@ -46,8 +46,8 @@ describe('EventRecord', (): void => {
const er = records[0];
expect(er.phase.type).toEqual('ApplyExtrinsic');
// additional payment info
expect(records.toHex()).toEqual(`${hex}000000000000`);
// additional payment info, weight u64 (vs u32)
expect(records.toHex()).toEqual(hex + '000000000000' + '00000000');
});
});
});