Skip to content

Commit f2447b4

Browse files
committed
update example
1 parent 428234f commit f2447b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "validators-dao/sol-swap" }
5+
{ "repo": "validatorsdao/typescript-library" }
66
],
77
"commit": false,
88
"fixed": [],

packages/sol-swap/src/examples/jupiter/getQuote.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const getQuote = async () => {
99
if (typeof quote === 'string') {
1010
throw new Error(quote)
1111
}
12+
const estimatedAmount = quote.outAmount
13+
console.log(`Estimated Amount: ${estimatedAmount}`)
1214
await jupiterSwap(quote)
1315
}
1416

0 commit comments

Comments
 (0)