add optional WalletLocator to SignerEntry

This commit is contained in:
Omar Khan
2022-06-14 17:47:26 -04:00
parent 663415b23f
commit 927172a65f
2 changed files with 26 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ export interface SignerEntry {
SignerEntry: {
Account: string
SignerWeight: number
WalletLocator?: string
}
}

View File

@@ -36,4 +36,29 @@ describe('SignerListSet', function () {
}
await testTransaction(this.client, tx, this.wallet)
})
it('sign with WalletLocator', async function () {
const tx: SignerListSet = {
TransactionType: 'SignerListSet',
Account: this.wallet.classicAddress,
SignerEntries: [
{
SignerEntry: {
Account: 'r5nx8ZkwEbFztnc8Qyi22DE9JYjRzNmvs',
SignerWeight: 1,
WalletLocator:
'CAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFECAFE',
},
},
{
SignerEntry: {
Account: 'r3RtUvGw9nMoJ5FuHxuoVJvcENhKtuF9ud',
SignerWeight: 1,
},
},
],
SignerQuorum: 2,
}
await testTransaction(this.client, tx, this.wallet)
})
})