Skip to content

Releases: cawabunga/headless-web3-provider

v0.2.4

25 Mar 18:46
Compare
Choose a tag to compare
v0.2.4 Pre-release
Pre-release

What's Changed

Add option to automatically authorize certain RPC requests like (e.g. eth_accounts aka Web3RequestKind.Accounts):

import { test as base } from '@playwright/test'
import { injectHeadlessWeb3Provider, Web3RequestKind } from 'headless-web3-provider'

export const test = base.extend({
  injectWeb3Provider: async (use) => {
    await use((page) =>
      injectHeadlessWeb3Provider(
        page,
        privateKeys,
        31337,
        'http://localhost:8545',
        { permitted: [Web3RequestKind.Accounts] } // <-- new config option
      )
    )
  },
})

Full Changelog: v0.2.3...v0.2.4

v0.2.3

19 Sep 07:09
Compare
Choose a tag to compare
v0.2.3 Pre-release
Pre-release

What's Changed

Full Changelog: v0.2.2...v0.2.3

v0.2.2

25 Aug 12:32
Compare
Choose a tag to compare
v0.2.2 Pre-release
Pre-release

What's Changed

  • Emits accountsChanged on wallet_requestPermissions is approved by @daenamkim in #9
  • Return lowercase accounts instead of the checksummed by @daenamkim in #7

New Contributors

Full Changelog: v0.2.1...v0.2.2