lib/stellar/transaction_builder.rb in stellar-base-0.29.0 vs lib/stellar/transaction_builder.rb in stellar-base-0.30.0
- old
+ new
@@ -9,14 +9,17 @@
# TransactionBuilder.payment(...),
# TransactionBuilder.manage_data(...) and etc.
# It reduces the boilerplate, when you just need to
# shoot a single operation in transaction
def method_missing(method_name, *args, **kwargs)
- unless Stellar::Operation.respond_to?(method_name)
- return super
- end
+ return super unless Operation.respond_to?(method_name)
- op = Stellar::Operation.send(method_name, **kwargs)
+ op = Operation.send(
+ method_name,
+ **kwargs.except(
+ :source_account, :sequence_number, :base_fee, :time_bounds, :memo, :enable_muxed_accounts
+ )
+ )
new(**kwargs).add_operation(op).build
end
def respond_to_missing?(method_name, include_private = false)