Update tests
This commit is contained in:
@@ -20,9 +20,11 @@ describe('fromMetadata', () => {
|
|||||||
expect(() => newExtrinsics.balances.setBalance('5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCt72s', 2, 3)).not.toThrow();
|
expect(() => newExtrinsics.balances.setBalance('5C62W7ELLAAfix9LYrcx5smtcffbhvThkM5x7xfMeYXCt72s', 2, 3)).not.toThrow();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return the correct storage key', () => {
|
it('should return properly-encodec trsnactions', () => {
|
||||||
expect(newExtrinsics.timestamp.set([10101]).toU8a(true)).toEqual(
|
expect(newExtrinsics.timestamp.set([10101]).toU8a()).toEqual(
|
||||||
new Uint8Array([
|
new Uint8Array([
|
||||||
|
// length (encoded)
|
||||||
|
10 << 2,
|
||||||
// index
|
// index
|
||||||
3, 0,
|
3, 0,
|
||||||
// values
|
// values
|
||||||
|
|||||||
Reference in New Issue
Block a user