Properly toJSON() on StorageFunction (#179)
* Properly toJSON() on StorageFunction * Add isZero(), cmp & toStringFormat * Update tests for UInt toString()
This commit is contained in:
@@ -15,7 +15,7 @@ describe('Struct', () => {
|
||||
u32: U32
|
||||
})
|
||||
)({ txt: 'foo', u32: 0x123456 }).toString()
|
||||
).toEqual(`{txt: foo, u32: 0x00123456}`);
|
||||
).toEqual(`{txt: foo, u32: 1193046}`);
|
||||
});
|
||||
|
||||
it('exposes the types', () => {
|
||||
@@ -43,6 +43,6 @@ describe('Struct', () => {
|
||||
test.values().map((v) =>
|
||||
v.toString()
|
||||
)
|
||||
).toEqual(['bazzing', '0x00000045']);
|
||||
).toEqual(['bazzing', '69']);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user