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

feat: initLocalEnvironment #47

Merged
merged 11 commits into from
Feb 8, 2024
Merged

Conversation

irubido
Copy link
Contributor

@irubido irubido commented Feb 5, 2024

Closes #44

follows logic and consts for gas/salt from /contracts local deployment

@irubido irubido self-assigned this Feb 5, 2024
);

const receipt = await createX.methods
.deployCreate3(deployerSalt, AdapterBytecode)
Copy link
Member

Choose a reason for hiding this comment

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

don't you need to submit createX address to adapter constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I follow logic from /contacts/hardhat.config.js for deployment
there param on createX.deployCreate3 method is bytecode from CrosschainDeployAdapter

Copy link
Member

Choose a reason for hiding this comment

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

have you tested this. I'm pretty sure contract deploy won't work as adapter will have wrong createx address

Copy link
Member

Choose a reason for hiding this comment

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

I think you need to append custom constructor args to the bytecode

@irubido irubido requested a review from mpetrunic February 6, 2024 14:26
# Conflicts:
#	packages/plugin/src/MultichainHardhatRuntimeEnvironmentField.ts
@BeroBurny BeroBurny marked this pull request as draft February 7, 2024 16:07
@BeroBurny
Copy link
Collaborator

I converted it to a draft, found some missing stuff, and needed to write documentation.
Tomorrow EOD should be ready to review.

@BeroBurny BeroBurny marked this pull request as ready for review February 8, 2024 13:41
@mpetrunic mpetrunic merged commit e728a10 into master Feb 8, 2024
2 checks passed
@mpetrunic mpetrunic deleted the irubido/initLocalEnvironment branch February 8, 2024 14:09
@github-actions github-actions bot mentioned this pull request Feb 7, 2024
BeroBurny pushed a commit that referenced this pull request Feb 16, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>hardhat-plugin-multichain-deploy: 1.0.0</summary>

## 1.0.0 (2024-02-16)


### Features

* adapter address env
([#25](#25))
([628a99c](628a99c))
* deploy multichain bytecode
([#22](#22))
([2eff1ee](2eff1ee))
* encode constructor improve
([#24](#24))
([9c4b7b1](9c4b7b1))
* encode function and deployMultichain flow
([#14](#14))
([26229cf](26229cf))
* encodeInitData
([#30](#30))
([50758ca](50758ca))
* example
([#49](#49))
([637d0ae](637d0ae))
* initLocalEnvironment
([#47](#47))
([e728a10](e728a10))
* rework networks input
([#23](#23))
([3caf657](3caf657))
* tool interfaces aka fasad
([#10](#10))
([6351819](6351819))
* transaction details and deployment info
([#33](#33))
([2b3232d](2b3232d))


### Bug Fixes

* deployment network type and naming
([#26](#26))
([1060069](1060069))
* small logical mistakes
([#48](#48))
([6cfd609](6cfd609))
</details>

<details><summary>hardhat-plugin-multichain-deploy-contracts:
1.0.0</summary>

## 1.0.0 (2024-02-16)


### Features

* add contracts implementation
([#11](#11))
([114c05f](114c05f))
* example
([#49](#49))
([637d0ae](637d0ae))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

initLocalEnviroment method
3 participants