vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
247 stars 49 forks source link

Set chain ID via BrowserSigner + #137 #131

Closed DanielSchiavini closed 7 months ago

DanielSchiavini commented 7 months ago

Closes #125 Depends on https://github.com/vyperlang/titanoboa/pull/124 Includes https://github.com/vyperlang/titanoboa/pull/137

What I did

Set chain ID via BrowserSigner

How I did it

How to verify it

In jupyterlab

!pip install git+https://github.com/DanielSchiavini/titanoboa.git@125/browser-chain-id
import boa
boa.set_browser_env()
boa.env.chain_id = "0x01"
boa.env.chain_id
> "0x01"

Description for the changelog

Allow retrieving and changing chain ID in JupyterLab/Colab via BrowserEnv

Cute Animal Picture

image