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:
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user