Skip to content

Commit c6dd2c9

Browse files
committed
use explicit types
1 parent 14cf4bc commit c6dd2c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

target_chains/sui/sdk/js/src/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { HexString } from "@pythnetwork/price-service-client";
66
import { Buffer } from "buffer";
77

88
const MAX_ARGUMENT_SIZE = 16 * 1024;
9-
type Coin = {
9+
type NestedTransactionResult = {
1010
$kind: "NestedResult";
1111
NestedResult: [number, number];
1212
};
@@ -112,7 +112,7 @@ export class SuiPythClient {
112112
tx: Transaction,
113113
updates: Buffer[],
114114
packageId: string,
115-
): Promise<any> {
115+
): Promise<NestedTransactionResult> {
116116
if (updates.length > 1) {
117117
throw new Error(
118118
"SDK does not support sending multiple accumulator messages in a single transaction",
@@ -144,7 +144,7 @@ export class SuiPythClient {
144144
packageId: string,
145145
feedIds: HexString[],
146146
priceUpdatesHotPotato: any,
147-
coins: Coin[],
147+
coins: NestedTransactionResult[],
148148
) {
149149
const priceInfoObjects: ObjectId[] = [];
150150
let coinId = 0;
@@ -220,7 +220,7 @@ export class SuiPythClient {
220220
tx: Transaction,
221221
updates: Buffer[],
222222
feedIds: HexString[],
223-
coins: Coin[],
223+
coins: NestedTransactionResult[],
224224
): Promise<ObjectId[]> {
225225
const packageId = await this.getPythPackageId();
226226
const priceUpdatesHotPotato = await this.verifyVaasAndGetHotPotato(

0 commit comments

Comments
 (0)