Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Conversation

@doodyparizada
Copy link
Contributor

allow specifying fee
fix payment stream - to not keep sending the same transactions over and over

}

public async send(operation: xdr.Operation<Operation>, memoText?: string): Promise<Server.TransactionRecord> {
public async send(operation: xdr.Operation<Operation>, options: { memo?: string, fee?: number } = {}): Promise<Server.TransactionRecord> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i see that this options type: { memo?: string, fee?: number } is used at least 3 times.
just extract it into a type:

type TransactionsOptions = { memo?: string, fee?: number; };

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants