|
88 | 88 | import org.xrpl.xrpl4j.model.transactions.CredentialType; |
89 | 89 | import org.xrpl.xrpl4j.model.transactions.CredentialUri; |
90 | 90 | import org.xrpl.xrpl4j.model.transactions.CredentialWrapper; |
| 91 | +import org.xrpl.xrpl4j.model.transactions.DelegateSet; |
91 | 92 | import org.xrpl.xrpl4j.model.transactions.DepositPreAuth; |
92 | 93 | import org.xrpl.xrpl4j.model.transactions.DidDelete; |
93 | 94 | import org.xrpl.xrpl4j.model.transactions.DidSet; |
@@ -1499,6 +1500,19 @@ void addSignatureToDidDelete() { |
1499 | 1500 | addSignatureToTransactionHelper(transaction); |
1500 | 1501 | } |
1501 | 1502 |
|
| 1503 | + @Test |
| 1504 | + void addSignatureToDelegateSet() { |
| 1505 | + DelegateSet transaction = DelegateSet.builder() |
| 1506 | + .account(sourcePublicKey.deriveAddress()) |
| 1507 | + .fee(XrpCurrencyAmount.ofDrops(10)) |
| 1508 | + .sequence(UnsignedInteger.valueOf(391)) |
| 1509 | + .signingPublicKey(sourcePublicKey) |
| 1510 | + .authorize(signer1KeyPair.publicKey().deriveAddress()) |
| 1511 | + .build(); |
| 1512 | + |
| 1513 | + addSignatureToTransactionHelper(transaction); |
| 1514 | + } |
| 1515 | + |
1502 | 1516 | @Test |
1503 | 1517 | void addSignatureToOracleSet() { |
1504 | 1518 | OracleSet transaction = OracleSet.builder() |
@@ -2271,6 +2285,18 @@ void addMultiSignatureToDidDelete() { |
2271 | 2285 | addMultiSignatureToTransactionHelper(transaction); |
2272 | 2286 | } |
2273 | 2287 |
|
| 2288 | + @Test |
| 2289 | + void addMultiSignatureToDelegateSet() { |
| 2290 | + DelegateSet transaction = DelegateSet.builder() |
| 2291 | + .account(sourcePublicKey.deriveAddress()) |
| 2292 | + .fee(XrpCurrencyAmount.ofDrops(10)) |
| 2293 | + .sequence(UnsignedInteger.valueOf(391)) |
| 2294 | + .authorize(signer1KeyPair.publicKey().deriveAddress()) |
| 2295 | + .build(); |
| 2296 | + |
| 2297 | + addMultiSignatureToTransactionHelper(transaction); |
| 2298 | + } |
| 2299 | + |
2274 | 2300 | @Test |
2275 | 2301 | void addMultiSignatureToOracleSet() { |
2276 | 2302 | OracleSet transaction = OracleSet.builder() |
|
0 commit comments