Skip to content

Commit a5d6b58

Browse files
authored
Merge pull request #488 from blocknative/enhancement/send-onboard-version
1.18.0-0.3.0: Enhancement - Send Onboard version
2 parents 3cc558e + 67c9c60 commit a5d6b58

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.18.0-0.2.0",
3+
"version": "1.18.0-0.3.0",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

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)