Skip to content

Commit e7268eb

Browse files
committed
Add Onboard version to SDK
1 parent 3cc558e commit e7268eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/services.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import BlocknativeApi from 'bnc-sdk'
22
import { get } from 'svelte/store'
33
import { app } from './stores'
4+
import { version } from '../package.json'
45

56
let blocknative: any
67

@@ -13,14 +14,15 @@ export function initializeBlocknative(
1314
dappId,
1415
networkId,
1516
name: 'Onboard',
17+
appVersion: version,
1618
apiUrl
1719
})
1820
return blocknative
1921
}
2022

2123
export function getBlocknative(): any {
2224
if (!blocknative) {
23-
const {dappId, networkId, apiUrl} = get(app)
25+
const { dappId, networkId, apiUrl } = get(app)
2426
initializeBlocknative(dappId, networkId, apiUrl)
2527
}
2628
return blocknative

0 commit comments

Comments
 (0)