`prepare_deploy_contract` cheatcode
See original GitHub issueProposal:
func ():
%{
dep = Contract("./contract.cairo", [1,2,3])
start_prank(123, target=dep.contract_address)
dep.deploy()
%}
end
Would work also for mock_call
and any targeted cheatcode.
We could in the future deprecate deploy_contract
, and instead use:
%{
dep = Contract("./contract.cairo", [1,2,3]).deploy()
%}
Interface
class Contract:
__init__(path, calldata): ...
def deploy(self) -> Contract: ...
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8
Top Results From Across the Web
deploy_contract | Protostar - Software Mansion
Deploys a contract given a path relative to a Protostar project root. The section Deploying contracts from tests demonstrates a usage of this...
Read more >How to Simply Deploy a Smart Contract on Ethereum?
Step 3 – Get access to Bytecode and ABI (Compile the smart contract). Solidity compiler gives a huge piece of code as output,...
Read more >Foundry Tutorial | How To Debug & Deploy Solidity Smart ...
Foundry is a Solidity Framework for building, testing, fuzzing, debugging and deploying Solidity smart contracts. In this Foundry tutorial ...
Read more >Deploy your first Solidity smart contract with Remix IDE
In this video, I will show you how to deploy smart contracts using Remix IDE (web app for Solidity development). As example, I...
Read more >dabit3/foundry-cheatsheet - GitHub
This creates a new project with 4 folders: src - An example smart contract and where your smart contracts will live. script -...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We can create a mapping tmp_address -> actual_address, which could be updated by Contract::deploy just before deploying a contract.
#379