NethermindEth / hardhat-warp

A Hardhat plugin that uses Warp to bring Solidity contracts to StarkNet
Apache License 2.0
19 stars 7 forks source link

Fix get_caller_address in constructor #10

Closed JorikSchellekens closed 2 years ago

JorikSchellekens commented 2 years ago

Since StarkNet doesn't support a signature parameter in a deploy transaction, the get_caller_address will always be 0. To get around this we can deploy a proxy that has a deploy syscall and calling this proxy from a wallet will have the correct caller address for the deployed contract.