Skip to content

Commit 14cf4bc

Browse files
committed
fix eslint
1 parent c631d23 commit 14cf4bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,14 @@ export class SuiPythClient {
113113
updates: Buffer[],
114114
packageId: string,
115115
): Promise<any> {
116-
let priceUpdatesHotPotato;
117116
if (updates.length > 1) {
118117
throw new Error(
119118
"SDK does not support sending multiple accumulator messages in a single transaction",
120119
);
121120
}
122121
const vaa = this.extractVaaBytesFromAccumulatorMessage(updates[0]);
123122
const verifiedVaas = await this.verifyVaas([vaa], tx);
124-
[priceUpdatesHotPotato] = tx.moveCall({
123+
const [priceUpdatesHotPotato] = tx.moveCall({
125124
target: `${packageId}::pyth::create_authenticated_price_infos_using_accumulator`,
126125
arguments: [
127126
tx.object(this.pythStateId),

0 commit comments

Comments
 (0)