-
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
Feature/prime sdk based service hooks #60
Conversation
…erspot prime, fixed example dapp
…s, fixed tests accordingly, updated example dapp
"buffer": "^6.0.3", | ||
"ethers": "^5.6.9", | ||
"etherspot": "^1.41.2", |
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.
RIP
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.
RIP
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.
Just one tiny thing - other than that - looks and feels better!
const raw = window.localStorage.getItem(`session-prime-${walletAddress}`); | ||
result = raw ? JSON.parse(raw) : null | ||
} catch (err) { | ||
// |
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.
We should add a warning or something here should the device or security not allow local storage, feels like a showstopper?
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.
session storage removed completely per SDK team feedback
Added Changes
example
React code to latest changes@etherspot/prime-sdk
to version1.3.4
Breaking Changes
etherspot
dependency@etherspot/react-etherspot
dependencyprovider
prop as required for<EtherspotTransactionKit />
componentgetSdkForChainId
onuseEtherspot
hook replaced withgetSdk
that returnsPrime SDK
instance asPromise
connect
onuseEtherspot
is no longer available and not required to start SDK sessionaccountAddress
andproviderWalletAddress
are no longer onuseEtherspot
hook, please useuseWalletAddress
hooksdk
onuseEtherspot
hook is no longer present, please usegetSdk
onuseEtherspot
hook