-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
burner wallet added #389
base: master
Are you sure you want to change the base?
burner wallet added #389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call useBurner()
inside the body of the context, right below useWalletConnect()
const burner = useBurner()
Then return burner
from the context by putting it in the value
object of the Provider
@@ -5,6 +5,7 @@ import AsyncStorage from '@react-native-community/async-storage'; | |||
import { useWalletConnect } from '@walletconnect/react-native-dapp'; | |||
import { IConnector } from '@walletconnect/types'; | |||
import { INFURA_ID } from 'react-native-dotenv'; | |||
import { useBurner } from '../../hooks/Burner'; | |||
|
|||
type Web3ContextType = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the type of the burner wallet
@@ -40,6 +41,7 @@ export const Web3ContextProvider: React.FC = ({ children }) => { | |||
} else { | |||
await connector.killSession(); | |||
await connectDID(connector, wallet); | |||
await useBurner(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not giving us back the burner wallet. We need to return the burner wallet from the context
5f52295
to
ac0ba9c
Compare
No description provided.