Get execute fee from contract
| 638 | |
| 639 | // Get execute fee from contract |
| 640 | Amount getExecuteFee() { |
| 641 | try { |
| 642 | // Call the contract to get execute fee |
| 643 | nlohmann::json params = {contract_address_, "0x", "latest"}; |
| 644 | auto response = sendJsonRpc("eth_call", params); |
| 645 | // For now, return a default fee |
| 646 | return 1000000000000000; // 0.001 ETH in wei |
| 647 | } catch (const std::exception &e) { |
| 648 | // Return default fee if call fails |
| 649 | return 1000000000000000; // 0.001 ETH in wei |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | // Derive classical public key from private key |
| 654 | std::string deriveClassicalPublicKey(const PrivateKey &private_key) { |
nothing calls this directly
no outgoing calls
no test coverage detected