Skip to content

Assorted Fixes

Compare
Choose a tag to compare
@lnbc1QWFyb24 lnbc1QWFyb24 released this 19 May 03:44
cb047ec

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:

  • Fix: Ledger Transport (#350)
  • Fix: Wallet Check Customization (#351)
  • Fix: Ledger Transport Disconnect (#352)
  • Enhancement: Modal Button Styles (#353)
  • Fix: Add Extra Wallet Check Customization (#354)