BuidlGuidl / BuidlGuidl/learning-lab

Deploy card: split deploy from interaction, and show real deploy feedback (tx, gas, address)

Open
#32 1 comment 0 reactions 1 assignee Claimed by @technophile-04 View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
4d 53m
Merged PRs (30d)
6

Description

### Description:

Right now hitting deploy flips straight into the live experiment UI. There's no feedback for and you don't really know what happened and UI just pops.

Two parts:

- Separate the deploy beat from the Experiment card. One card (or section) deploys, the next is where you read/write the contract. Right now it's all crammed into one card and it's a lot to take in at once.
- Add a small deploy console that shows hardhat-style output: "deploying…", a success line, gas used, tx hash, and the deployed contract address.

Keep it minimal for the demo: "contract deployed, cost X gas, here's the address" already does the job. We can make it richer later.

Just adding another thing, when we move to Experiment UI we need to again deploy the contract the reason being the tevm state bound to only one card. This is good when it comes to `code-exerise` card, because we don't want to ruint the state of the contract while running the tests, but we need to find a better way when moving from deploy => experiment (such that we use the deployed contract in the experiment card next)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.