Skip to content

Dummy contract#81

Draft
Sneh1999 wants to merge 2 commits intocelestia-integrationfrom
dummy-contract
Draft

Dummy contract#81
Sneh1999 wants to merge 2 commits intocelestia-integrationfrom
dummy-contract

Conversation

@Sneh1999
Copy link
Collaborator

@Sneh1999 Sneh1999 commented Jun 17, 2025

Deploy dummy contract using:

npx hardhat run scripts/deployDummyContract.ts --network moltenDevnet

Then send data using:

But before that replace the contractAddress in sendData.ts

npx hardhat run scripts/sendData.ts --network moltenDevnet

const [signer] = await ethers.getSigners()

// Replace with your deployed contract address
const contractAddress = '0xbA6E2502B4Ef771582bD4517182440cC6D31c8e7'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After deploying the dummy contract replace this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we just have a flag that optionally deploys the contract for you, and then use the address in the same script, We could just have it do that based on a env var or a cmd flag.

Copy link
Member

@zacshowa zacshowa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some general comments/questions.

signer
)

// Generate 100 KB of data (zero bytes or random)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment, and the one on the next line are wrong.

const [signer] = await ethers.getSigners()

// Replace with your deployed contract address
const contractAddress = '0xbA6E2502B4Ef771582bD4517182440cC6D31c8e7'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we just have a flag that optionally deploys the contract for you, and then use the address in the same script, We could just have it do that based on a env var or a cmd flag.

? [process.env['DEVNET_PRIVKEY']]
: [],
},
moltenDevnet: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, maybe we should add more of the networks we work against to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants