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

Method parseAmount

src/cli.cpp:1079–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079Amount CLI::parseAmount(const std::string &amount) const {
1080 try {
1081 return std::stoull(amount);
1082 } catch (const std::exception &) {
1083 throw std::runtime_error("Invalid amount format");
1084 }
1085}
1086
1087std::vector<uint8_t> CLI::parseOpData(const std::string &opdata) const {
1088 // Parse operation data from hex

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected