mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-28 08:05:51 +00:00
Add multisign helpers
This commit is contained in:
@@ -2057,4 +2057,42 @@ describe('Remote', function() {
|
||||
RegularKey: TX_JSON.Destination
|
||||
});
|
||||
});
|
||||
|
||||
it('Construct SignerListSet transaction', function() {
|
||||
const tx = remote.createTransaction('SignerListSet', {
|
||||
account: 'rsLEU1TPdCJPPysqhWYw9jD97xtG5WqSJm',
|
||||
signerQuorum: 3,
|
||||
signers: [
|
||||
{
|
||||
account: 'rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
||||
weight: 1
|
||||
},
|
||||
{
|
||||
account: 'rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK',
|
||||
weight: 2
|
||||
}
|
||||
]
|
||||
});
|
||||
assert(tx instanceof Transaction);
|
||||
assert.deepEqual(tx.tx_json, {
|
||||
Flags: 0,
|
||||
TransactionType: 'SignerListSet',
|
||||
Account: 'rsLEU1TPdCJPPysqhWYw9jD97xtG5WqSJm',
|
||||
SignerQuorum: 3,
|
||||
SignerEntries: [
|
||||
{
|
||||
SignerEntry: {
|
||||
Account: 'rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
||||
SignerWeight: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
SignerEntry: {
|
||||
Account: 'rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK',
|
||||
SignerWeight: 2
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user