deploy
def deploy(
prepared: PreparedContract,
) -> DeployedContract:
class DeployedContract:
contract_address: int
Deploys contract for deployment given PreparedContract
.
danger
You can't deploy the same PreparedContract
twice.
./src/main.cairo
@constructor
func constructor(initial_balance: Uint256, contract_id: felt) {
// ...
return ();
}
info
To learn more how data is transformed from Python to Cairo read Data transformation section in the Starknet.py's documentation.