Add an extension to set contract address #3141
Replies: 3 comments
-
This isn’t probably going to happen in the near future, but I will move it to “ideas”, as it could be something added for sub-classes to override. In hedera, are contract addresses synchronous? As in, they can be computed from the transaction? Or does it require fetching chain data? |
Beta Was this translation helpful? Give feedback.
-
Thanks Richard, It requires fetching chain data - in Hedera addresses are allocated sequentially by the network itself and it's not dependent on the transaction args / account properties. We would appreciate it if we can try adding the option for sub-classes to override, this will work for us. |
Beta Was this translation helpful? Give feedback.
-
@ricmoo
Implementing this flag, we are making ethersjs 100% compatible with the Hedera EVM, also unintentionally ethersjs will support one more ecosystem out-of-the-box and a new flow of users will come. Big note here, the current users will not be affected by these changes, and their workflow will be the same as it has always been. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have the following case: we are aiming to have contract deployment is 100% compatible with the Ethereum workflow, but in our case the contract address is not based on sender
address
andnonce
but rather it's the next available id (Hedera).From which arises the need for us to set the contract address on contract deployment. Is there an option to add an extension which would allow us to do so?
https://docs.ethers.io/v5/api/utils/address/#utils--contract-addresses
For context: https://github.com/hashgraph/hedera-json-rpc-relay/issues/193
Code Example
No response
Beta Was this translation helpful? Give feedback.
All reactions