Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Greeter contract an all it's references. #11

Open
jpcenteno opened this issue Nov 8, 2023 · 2 comments
Open

Remove Greeter contract an all it's references. #11

jpcenteno opened this issue Nov 8, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@jpcenteno
Copy link
Contributor

❯ fd -i greet
ExecutionHelper/test/greeter.test.ts
❯ rg -i greet
deploy/deploy.ts
4:// It will deploy a Greeter contract to selected network
7:  const contractArtifactName = "Greeter";

ExecutionHelper/test/greeter.test.ts
6:describe('Greeter', function () {
7:  it("Should return the new greeting once it's changed", async function () {
10:    const greeting = "Hello world!";
11:    const greeter = await deployContract("Greeter", [greeting], { wallet, silent: true });
13:    expect(await greeter.greet()).to.eq(greeting);
15:    const newGreeting = "Hola, mundo!";
16:    const setGreetingTx = await greeter.setGreeting(newGreeting);
19:    await setGreetingTx.wait();
21:    expect(await greeter.greet()).to.equal(newGreeting);

ExecutionHelper/deploy/deploy.ts
4:// It will deploy a Greeter contract to selected network

ExecutionHelper/deploy/utils.ts
45: * @param {string} data.contract The contract's path and name. E.g., "contracts/Greeter.sol:Greeter"

ExecutionHelper/deploy/interact.ts
14:  const contractArtifact = await hre.artifacts.readArtifact("Greeter");
24:  const response = await contract.greet();
28:  const transaction = await contract.setGreeting("Hello people!");
35:  console.log(`The message now is: ${await contract.greet()}`);

deploy/interact.ts
14:  const contractArtifact = await hre.artifacts.readArtifact("Greeter");
24:  const response = await contract.greet();
28:  const transaction = await contract.setGreeting("Hello people!");
35:  console.log(`The message now is: ${await contract.greet()}`);

deploy/utils.ts
45: * @param {string} data.contract The contract's path and name. E.g., "contracts/Greeter.sol:Greeter"
@jpcenteno jpcenteno added the good first issue Good for newcomers label Nov 8, 2023
@varun-doshi
Copy link

I can take this up.
Can you please assign this to me?

@SIDHARTH20K4
Copy link

I'm ready to do this
Could you assign this to me??!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants