Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit f5eb5b0

Browse files
authored
Fix parsing price ids starting with 0x (#16)
1 parent ee23266 commit f5eb5b0

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

pyth-common-js/src/examples/PriceServiceClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const argv = yargs(hideBin(process.argv))
2323
})
2424
.help()
2525
.alias("help", "h")
26+
.parserConfiguration({
27+
"parse-numbers": false,
28+
})
2629
.parseSync();
2730

2831
async function run() {

pyth-evm-js/src/examples/EvmPriceServiceClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const argv = yargs(hideBin(process.argv))
2323
})
2424
.help()
2525
.alias("help", "h")
26+
.parserConfiguration({
27+
"parse-numbers": false,
28+
})
2629
.parseSync();
2730

2831
async function run() {

pyth-evm-js/src/examples/EvmRelay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const argv = yargs(hideBin(process.argv))
3939
})
4040
.help()
4141
.alias("help", "h")
42+
.parserConfiguration({
43+
"parse-numbers": false,
44+
})
4245
.parseSync();
4346

4447
const CONFIG: Record<string, any> = {

pyth-terra-js/src/examples/TerraPriceServiceClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const argv = yargs(hideBin(process.argv))
2323
})
2424
.help()
2525
.alias("help", "h")
26+
.parserConfiguration({
27+
"parse-numbers": false,
28+
})
2629
.parseSync();
2730

2831
async function run() {

pyth-terra-js/src/examples/TerraRelay.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const argv = yargs(hideBin(process.argv))
3838
})
3939
.help()
4040
.alias("help", "h")
41+
.parserConfiguration({
42+
"parse-numbers": false,
43+
})
4144
.parseSync();
4245

4346
const CONFIG: Record<string, any> = {

0 commit comments

Comments
 (0)