MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / getContractAddress

Method getContractAddress

src/cli.cpp:1047–1055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047std::string CLI::getContractAddress(const std::string &contract_name) const {
1048 if (!contract_address_.empty()) {
1049 return contract_address_;
1050 }
1051 // If no contract address provided, this indicates an error in the current
1052 // setup
1053 throw std::runtime_error(
1054 "No contract address provided. Use --contract-address option.");
1055}
1056
1057std::array<uint8_t, 32> CLI::parseVaultId(const std::string &vault_id) const {
1058 // Parse a 32-byte vault ID from hex

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected