Releases: blocknative/assist
Mobile notification position and truffle fixes
-
Contract decoration improvements (#202)
- Fix truffle contract decoration with web3 0.20
- Fix contract method properties not being properly assigned on web3v1
- Fix overloaded contract methods not being properly assigned
- Improve contract tests
-
- Fix legacyCall with truffle contracts
- Fix truffle calls hanging forever
-
Configure mobile position and set default to
top
(#214) -
Update README to document both APIs for notificationsPosition (#220)
Mobile bug fixes and doc update
Mobile device support for On-boarding and Notifications
This release adds mobile device support for:
- transaction awareness notifications (toasters)
- wallet readiness check dialogs (pre-flight)
- on-boarding (only includes check for wallet browser, correct network, sufficient funds)
- connect/enable modal for mobile wallets that have implemented privacy mode
Mobile on-boarding improvements
This release improves how Assist handles on-boarding on mobile platforms.
If mobileBlocked
is false
, onboard()
will call window.ethereum.enable()
if a modern provider so that the dapp can connect to the users wallet and get the current user state, then:
- reject with the current state if the user is not ready to transact
- resolve with the current state if the user is ready to transact
Bug fixes and more truffle contract tests
This release addresses a few bugs and adds more tests. The bug fix for promiEvents
on transaction send
or correct contract methods required a small API change on the return value. See documentation for details at at https://github.com/blocknative/assist/blob/master/README.md#promievent
- updated documentation on API change for
promiEvent
returned from contract method call - added more truffle contract tests
- fixed transaction stall false positive (#177)
- fixed race condition with MM confirmation of transactions (#174)
- improved handling of
promiEvent
on transactionsend
(#179) - fixed dropping of some contract methods (#181)
- improved determination of possible duplicate transaction (#183)
- improved resilience of confirmation callback in web3 1.0 (#185)
Fix truffle contract call, additional tests with genache
Fixed network check
Fixed a regression handling incorrect network on transactions and contracts. If a transaction or contract is initiated and the user's wallet is on the wrong network, Assist will show an informative dialog, but allwed the transaction/contract to proceed when the dialog is dismissed. Now the transaction/contract will not proceed. The user needs to change their wallet's network and initiate the transaction/contract again.
Fix onboard reject and network check
Custom notifications
This release features custom notifications a dapp can trigger at any time by calling the new notify()
method. Also included is a change to the API for onboard()
, which now returns the current state object instead of a string with the last onboard step. This will help dapps with their post-onboard logic. Finally, Assist styling can be updated after initialization with the new updateStyle()
method.
- API change for
onboard()
return value. - custom notifications via
notify()
API. See docs at https://github.com/blocknative/assist/blob/master/README.md#notifytype-message-options - new
updateStyle()
API to change style settings after Assist is initialized. See docs at https://github.com/blocknative/assist/blob/master/README.md#updatestylestyle - fix for automatically scrolling to bottom of notifications container so new notifications are seen
- fix for contract delegation for web3 >1.0.0-beta.37
- added more tests for contract decoration
Opera wallet fix
This release fixes a conflict with Opera browser's built-in wallet. The web3 object created by this wallet is different and not currently supported. Assist gets out of the way when the Opera wallet is in use.