Releases: cawabunga/headless-web3-provider
Releases · cawabunga/headless-web3-provider
v0.2.4
What's Changed
- Set up Prettier and prettify the code by @cawabunga in #15
- Refactor wallet permissions by @cawabunga in #18
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
What's Changed
- Fix running parallel tests that change the chain state by @cawabunga in #13
- Fix anvil pool termination by @cawabunga in #14
- Add anvil setup steps by @daenamkim in #11
- Fix eth_sendTransaction and add more RPC methods by @dahu33 in #12
Full Changelog: v0.2.2...v0.2.3
v0.2.2
What's Changed
- Emits
accountsChanged
onwallet_requestPermissions
is approved by @daenamkim in #9 - Return lowercase accounts instead of the checksummed by @daenamkim in #7
New Contributors
- @daenamkim made their first contribution in #9
Full Changelog: v0.2.1...v0.2.2