Skip to content

Commit

Permalink
example: update soroban_restore_footprint.py (#838)
Browse files Browse the repository at this point in the history
With the SorobanDataBuilder set to `.set_read_only()` the restore transaction returns as `malformed`
With SorobanDataBuilder set to `set_read_write` it executes succesfully

See https://soroban.stellar.org/docs/fundamentals-and-concepts/state-expiration#restorefootprintop
  • Loading branch information
Row-Bear committed Dec 10, 2023
1 parent 7b2b069 commit 0f769ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/soroban_restore_footprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
durability=stellar_xdr.ContractDataDurability.PERSISTENT,
),
)
soroban_data = SorobanDataBuilder().set_read_only([ledger_key]).build()
soroban_data = SorobanDataBuilder().set_read_write([ledger_key]).build()

tx = (
TransactionBuilder(source, network_passphrase, base_fee=50000)
Expand Down

0 comments on commit 0f769ef

Please sign in to comment.