You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xrpl/transaction/signer_list_set.go
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ var (
13
13
ErrInvalidSignerEntries=fmt.Errorf("signerEntries must have at least %d entry and no more than %d entries", MinSigners, MaxSigners)
14
14
ErrInvalidWalletLocator=errors.New("invalid WalletLocator in SignerEntry, must be an hexadecimal string")
15
15
ErrSignerQuorumGreaterThanSumOfSignerWeights=errors.New("signerQuorum must be less than or equal to the sum of all SignerWeights")
16
+
ErrInvalidQuorumAndEntries=errors.New("signerEntries must be empty when the SignerQuorum is set to 0 to delete a signer list")
16
17
)
17
18
18
19
const (
@@ -61,8 +62,8 @@ const (
61
62
typeSignerListSetstruct {
62
63
BaseTx
63
64
// A target number for the signer weights. A multi-signature from this list is valid only if the sum weights of the signatures provided is greater than or equal to this value.
64
-
// To delete a signer list, use the value 0.
65
-
SignerQuorumuint32
65
+
// To delete a signer list, use the value 0. Needs to be an uint32.
66
+
SignerQuoruminterface{}
66
67
// (Omitted when deleting) Array of SignerEntry objects, indicating the addresses and weights of signers in this list.
67
68
// This signer list must have at least 1 member and no more than 32 members.
68
69
// No address may appear more than once in the list, nor may the Account submitting the transaction appear in the list.
@@ -80,7 +81,7 @@ func (s *SignerListSet) Flatten() FlatTransaction {
0 commit comments