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