Payload Call as Bytes, test serialization (#1304)

* Payload Call as Bytes, test serialization

* Strip hex prefixes to method (signing & payload)
This commit is contained in:
Jaco Greeff
2019-08-13 18:21:46 +02:00
committed by YJ
parent f5da2f8b0e
commit 677e63b66e
8 changed files with 57 additions and 27 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ describe('SignerPayload', (): void => {
method: '0x0500ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
nonce: '0x00001234',
tip: '0x00000000000000000000000000005678',
version: 2
version: 3
};
beforeEach((): void => {
@@ -35,7 +35,7 @@ describe('SignerPayload', (): void => {
method: createType('Call', '0x0500ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c'),
nonce: 0x1234,
tip: 0x5678,
version: 2
version: 3
}).toPayload()
).toEqual({
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
@@ -46,7 +46,7 @@ describe('SignerPayload', (): void => {
method: '0x0500ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
nonce: '0x00001234',
tip: '0x00000000000000000000000000005678',
version: 2
version: 3
});
});