File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
target_chains/sui/sdk/js/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { HexString } from "@pythnetwork/price-service-client";
66import { Buffer } from "buffer" ;
77
88const 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 (
You can’t perform that action at this time.
0 commit comments