clarinet icon indicating copy to clipboard operation
clarinet copied to clipboard

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

Open friedger opened this issue 1 year ago • 3 comments

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

friedger avatar Jan 19 '24 10:01 friedger

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

planbetterHQ avatar Mar 07 '24 09:03 planbetterHQ

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

hugocaillard avatar Mar 12 '24 13:03 hugocaillard

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

friedger avatar Mar 12 '24 16:03 friedger