hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
292 stars 130 forks source link

remap genesis contracts like pox-3 from mainnet address to testnet address for deployments #1311

Open friedger opened 6 months ago

friedger commented 6 months ago

Is your feature request related to a problem? Please describe. As a developer, I am building on top of existing contracts on mainnet. In my contract, I use the addresses of the mainnet contract as specified in the requirements. They are mapped correctly. However, genesis contracts are not mapped.

Describe the solution you'd like Either allow to specify in contract-deploy

remap-principals:
                SP000000000000000000002Q6VF78: ST000000000000000000002AMW42H

Or do it automatically

Describe alternatives you've considered Manually replace this address

planbetterHQ commented 4 months ago

This happens to us too, is there any updates on this or someway we can help? Also, is there any workaround for it?

hugocaillard commented 4 months ago

@planbetterHQ @friedger I'm assuming both of your use case are about PoX contracts right?

friedger commented 4 months ago

If there is a solution for pox that is already good.