File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pythnetwork/price-pusher" ,
3
- "version" : " 5.4.0 " ,
3
+ "version" : " 5.4.1 " ,
4
4
"description" : " Pyth Price Pusher" ,
5
5
"homepage" : " https://pyth.network" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { PythPriceListener } from "../pyth-price-listener";
6
6
import { Controller } from "../controller" ;
7
7
import { Options } from "yargs" ;
8
8
import { SuiPriceListener , SuiPricePusher } from "./sui" ;
9
+ import { Ed25519Keypair } from "@mysten/sui.js" ;
9
10
10
11
export default {
11
12
command : "sui" ,
@@ -105,6 +106,13 @@ export default {
105
106
}
106
107
) ;
107
108
const mnemonic = fs . readFileSync ( mnemonicFile , "utf-8" ) . trim ( ) ;
109
+ console . log (
110
+ `Pushing updates from wallet address: ${ Ed25519Keypair . deriveKeypair (
111
+ mnemonic
112
+ )
113
+ . getPublicKey ( )
114
+ . toSuiAddress ( ) } `
115
+ ) ;
108
116
109
117
const priceItems = priceConfigs . map ( ( { id, alias } ) => ( { id, alias } ) ) ;
110
118
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export class SuiPricePusher implements IPricePusher {
144
144
const txs = [ ] ;
145
145
let currentBatchVaas = [ ] ;
146
146
let currentBatchPriceFeedIds = [ ] ;
147
- for ( const [ vaa , priceFeedIds ] of Object . entries ( vaaToPriceFeedIds ) ) {
147
+ for ( const [ vaa , priceFeedIds ] of vaaToPriceFeedIds . entries ( ) ) {
148
148
currentBatchVaas . push ( vaa ) ;
149
149
currentBatchPriceFeedIds . push ( ...priceFeedIds ) ;
150
150
if ( currentBatchVaas . length >= this . maxVaasPerPtb ) {
You can’t perform that action at this time.
0 commit comments