pub fn deploy_contract(
contract_code: &[u8],
gas_limit: u64,
sender_address: &str,
) -> Result<(), String>
Expand description
Deploys a smart contract to the blockchain.
§Arguments
contract_code
- The bytecode of the contract.gas_limit
- The maximum gas allowed for deployment.sender_address
- The address deploying the contract.
§Returns
Result<(), String> - Returns Ok if the deployment is successful, otherwise returns an error.