astroband / ruby-stellar-base

The stellar-base library is the lowest-level stellar helper library. It consists of classes to read, write, hash, and sign the xdr structures that are used in stellar-core
Apache License 2.0
21 stars 19 forks source link

Add set_source_account method to TransactionBuilder #64

Closed JakeUrban closed 4 years ago

JakeUrban commented 4 years ago

While writing the examples for the sdk, I had to create a TransactionBuilder instance for every source account. It would be nice if I could just change the builder's source account.

We already provide set_ methods for the sequence number, timebounds, and memo. The only other attribute that doesn't have a set_ function is the base fee, which we can also add.