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

V2.1.0 specify fee #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

V2.1.0 specify fee #12

wants to merge 2 commits into from

Conversation

doodyparizada
Copy link
Contributor

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

@@ -105,9 +105,9 @@ export class Operations {
this.server = server;
}

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.

2 participants