From 32cf3121ac14b716bdf0d2fa229c1a051b83a51b Mon Sep 17 00:00:00 2001 From: Bo Yao Date: Wed, 12 Oct 2022 14:43:00 +0800 Subject: [PATCH] format --- src/api.ts | 8 +++++++- src/utils.ts | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/api.ts b/src/api.ts index efb5b8e7a..82e89989f 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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; } /** diff --git a/src/utils.ts b/src/utils.ts index 73d608eb4..a243eadcb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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. */