Update IdentityInfo with twitter field (#1706)

* Update IdentityInfo with twitter field

* Rebuild

* Update test with twitter
This commit is contained in:
Jaco Greeff
2020-01-10 11:25:10 +01:00
committed by GitHub
parent 4c8c9fbb07
commit 1ff029dc11
4 changed files with 8 additions and 3 deletions
@@ -15,7 +15,7 @@ describe('Registration', (): void => {
'00' + // no judgements
'00a0724e180900000000000000000000' + // balance
'00' + // no length
'0399110399220399440399550399330000'
'039911039922039944039955039933000003996600'
).toJSON()
).toEqual({
deposit: 10000000000000,
@@ -27,6 +27,7 @@ describe('Registration', (): void => {
legal: { Raw: '0x9922' },
pgpFingerprint: null,
riot: { Raw: '0x9955' },
twitter: { Raw: '0x9966' },
web: { Raw: '0x9944' }
},
judgements: []
@@ -13,7 +13,8 @@ export default {
riot: 'Data',
email: 'Data',
pgpFingerprint: 'Option<H160>',
image: 'Data'
image: 'Data',
twitter: 'Data'
},
Judgement: {
_enum: {
@@ -24,6 +24,8 @@ export interface IdentityInfo extends Struct {
readonly pgpFingerprint: Option<H160>;
/** Data */
readonly image: Data;
/** Data */
readonly twitter: Data;
}
/** ITuple<[Data, Data]> */
@@ -29,7 +29,8 @@ export default class IdentityFields extends Set {
Riot: new BN(0b0000000000000000000000000000000000000000000000000000000000001000),
Email: new BN(0b0000000000000000000000000000000000000000000000000000000000010000),
PgpFingerprint: new BN(0b0000000000000000000000000000000000000000000000000000000000100000),
Image: new BN(0b0000000000000000000000000000000000000000000000000000000001000000)
Image: new BN(0b0000000000000000000000000000000000000000000000000000000001000000),
Twitter: new BN(0b0000000000000000000000000000000000000000000000000000000010000000)
}, decodeFields(registry, value));
}