Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ailisp committed Oct 12, 2022
1 parent c49abf5 commit 32cf312
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,13 @@ export function promiseCreate(
amount: NearAmount,
gas: NearAmount
): PromiseIndex {
return env.promise_create(accountId, methodName, args, amount, gas) as PromiseIndex;
return env.promise_create(
accountId,
methodName,
args,
amount,
gas
) as PromiseIndex;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { GetOptions } from "./types/collections";
export type Bytes = string;

// make PromiseIndex a nominal typing
enum PromiseIndexBrand { _ = "" };
enum PromiseIndexBrand {
_ = "",
}
/**
* A PromiseIndex which represents the ID of a NEAR Promise.
*/
Expand Down

0 comments on commit 32cf312

Please sign in to comment.