Assorted Fixes
This release just has a few small fixes and enhancements.
In Electron apps, selecting Ledger wallet would leave the UI hanging if the device wasn't connected and unlocked. A fix was added so that the Ledger transport is initialized at a later time allowing it to be selected without having it connected.
The wallet check modals weren't able to be customized due to some incorrect validation logic. That has now been fixed so that you can now customize the following in the wallet check initialization objects:
import Onboard from 'bnc-onboard'
const onboard = Onboard({
walletCheck: [
{
checkName: 'connect',
heading: 'Your Custom Heading',
description: 'Your custom description',
icon: 'Your custom icon string',
html: '<p>Some extra custom markup that will be displayed under the description</p>' ,
button: {
text: 'Custom button text',
onclick: () => alert('You clicked the custom button')
}
},
{ checkName: 'network' },
{ checkName: 'balance', minimumBalance: '100000' },
]
})
Changelog: