Skip to content

Commit

Permalink
feat: pass get-starknet to StarknetWalletProvider (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
yairans-starkware authored Feb 15, 2023
1 parent dd277c5 commit 76c706c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/material": "^5.10.12",
"@starkware-industries/commons-js-components": "^2.0.0-dev.4",
"@starkware-industries/commons-js-components": "^2.0.0-dev.6",
"@starkware-industries/commons-js-enums": "^1.2.0",
"@starkware-industries/commons-js-utils": "^1.2.1-dev.1",
"codemirror": "^5.62.3",
Expand Down
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {StarknetWalletProvider} from '@starkware-industries/commons-js-components';
import {connect, disconnect} from 'get-starknet';
import {getStarknet} from 'get-starknet-core';
import React, {useContext, useEffect} from 'react';
import styles from './App.module.scss';
import {Footer} from './components/Containers/Footer/Footer';
Expand All @@ -24,6 +26,7 @@ const App = () => {
<div className={styles.app}>
<StarknetWalletProvider
autoConnect={AUTO_CONNECT}
getLibrary={() => ({connect, disconnect, getStarknet})}
options={{starknetVersion: 'v4'}}
>
<TabsProvider>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2309,10 +2309,10 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@starkware-industries/commons-js-components@^2.0.0-dev.4":
version "2.0.0-dev.4"
resolved "https://registry.yarnpkg.com/@starkware-industries/commons-js-components/-/commons-js-components-2.0.0-dev.4.tgz#1e56819a16756f269c475d538dcf10fd8548b8a5"
integrity sha512-WCR5z3+Cij/B/KiPUNIECUwyd43zQG21lCFUilTSTgY/60MEG1an/88xbiJ7ypjoU6DvSlV5DVOtDzVPT3XkUw==
"@starkware-industries/commons-js-components@^2.0.0-dev.6":
version "2.0.0-dev.6"
resolved "https://registry.yarnpkg.com/@starkware-industries/commons-js-components/-/commons-js-components-2.0.0-dev.6.tgz#106fcdccc612dc0636200c64fab2b95860f66a0c"
integrity sha512-PrgC6Q0HTUeQbSI4DoI4yYkGL0uB7YUb2UDWU1/GpHz8CcQjEiJlg2dO7a7RTOlnqpnqQUw5cm6Kl8F86Ssyxg==

"@starkware-industries/commons-js-enums@^1.2.0":
version "1.2.0"
Expand Down

0 comments on commit 76c706c

Please sign in to comment.