Drop support for Extrinsic V1, V2 & V3 (#2638)
* Drop support for Extrinsic V1 & V2 * Update interfaces * Swap default to V4 * Remove V1/V2 extrinsic tests * Fix v3 toU8a * Fix Decorated tests for v4 * V3 payload extends v4 payload * Revert "V3 payload extends v4 payload" This reverts commit b1e546aa08fe1027aa77a235fd3b98441c426812. * Drop extrinsic v3 * Update CHANGELOG.md
This commit is contained in:
@@ -34,7 +34,7 @@ describe('Decorated', () => {
|
||||
// length (encoded)
|
||||
4 << 2,
|
||||
// version, no signature
|
||||
1,
|
||||
4,
|
||||
// index
|
||||
3, 0,
|
||||
// values, Compact<Moment>
|
||||
|
||||
@@ -31,7 +31,7 @@ describe('fromMetadata', (): void => {
|
||||
// length (encoded)
|
||||
4 << 2,
|
||||
// version, no signature
|
||||
1,
|
||||
4,
|
||||
// index
|
||||
3, 0,
|
||||
// values, Compact<Moment>
|
||||
|
||||
@@ -37,12 +37,13 @@ describe('extrinsics', (): void => {
|
||||
}).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'2502' + // length
|
||||
'81' + // signed flag
|
||||
'2d02' + // length
|
||||
'84' + // signed flag
|
||||
'ffd172a74cda4c865912c32ba0a80a57ae69abae410e5ccb59dee84e2f4432db4f' + // who
|
||||
'5322aca55349f72dbfa57f3e2484f3457c960fbd7f540fcf70433180c70f8af5' + // sig1
|
||||
'0f3c8dd7a7fbc8e23cfd9e3bc87f31008598e2be3feef512ed942f0240e1a908' + // sig2
|
||||
'0000' + // nonce & era
|
||||
'00' + // ed25519
|
||||
'4634f7b973084f983ef48e2afbd72a990f7d4dd9d86c39e645cb34d9a45466b6' + // sig1
|
||||
'263f0f2020363a6475f91e323a8b1bd43dedd97e78ec3c5d5b5197466305400e' + // sig2
|
||||
'000000' + // nonce, era, tip
|
||||
'0600' + // balances.transfer
|
||||
'ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' + // to
|
||||
'e56c' // value
|
||||
|
||||
Reference in New Issue
Block a user