We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.41.0-beta.2
@Test public void testIsSorobanTransactionBumpFootprintExpirationOperation() { KeyPair source = KeyPair.fromSecretSeed("SCH27VUZZ6UAKB67BDNF6FA42YMBMQCBKXWGMFD5TZ6S5ZZCZFLRXKHS"); Account account = new Account(source.getAccountId(), 2908908335136768L); String contractId = "CDYUOBUVMZPWIU4GB4XNBAYL6NIHIMYLZFNEXOCDIO33MBJMNPSFBYKU"; SorobanTransactionData sorobanData = new SorobanDataBuilder() .setReadOnly( Collections.singletonList( new LedgerKey.Builder() .discriminant(LedgerEntryType.CONTRACT_DATA) .contractData( new LedgerKey.LedgerKeyContractData.Builder() .contract(new Address(contractId).toSCAddress()) .key(Scv.toLedgerKeyContractInstance()) .durability(ContractDataDurability.PERSISTENT) .bodyType(ContractEntryBodyType.DATA_ENTRY) .build()) .build())) .build(); BumpFootprintExpirationOperation operation = BumpFootprintExpirationOperation.builder().ledgersToExpire(4096L).build(); Transaction transaction = new Transaction( AccountConverter.enableMuxed(), account.getAccountId(), Transaction.MIN_BASE_FEE, account.getIncrementedSequenceNumber(), new org.stellar.sdk.Operation[] {operation}, null, new TransactionPreconditions( null, null, BigInteger.ZERO, 0, new ArrayList<SignerKey>(), null), sorobanData, Network.TESTNET); assertTrue(transaction.isSorobanTransaction()); }
the above test passed
the above test failed
This is because BumpSequenceOperation should be changed to BumpFootprintExpirationOperation.
BumpSequenceOperation
BumpFootprintExpirationOperation
https://github.com/stellar/java-stellar-sdk/blob/d6379e961557ac3d86609c26141d2c0dad376ac3/src/main/java/org/stellar/sdk/Transaction.java#L405
The text was updated successfully, but these errors were encountered:
fixed in #518
Sorry, something went wrong.
No branches or pull requests
What version are you using?
0.41.0-beta.2
What did you do?
What did you expect to see?
the above test passed
What did you see instead?
the above test failed
Note
This is because
BumpSequenceOperation
should be changed toBumpFootprintExpirationOperation
.https://github.com/stellar/java-stellar-sdk/blob/d6379e961557ac3d86609c26141d2c0dad376ac3/src/main/java/org/stellar/sdk/Transaction.java#L405
The text was updated successfully, but these errors were encountered: