| 146 | } |
| 147 | |
| 148 | string GetMemo(const Array& params, const size_t index) { |
| 149 | if (params.size() > index) { |
| 150 | string memo = params[index].get_str(); |
| 151 | if (memo.size() > MAX_COMMON_TX_MEMO_SIZE) |
| 152 | throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("memo.size=%u is large than %llu", |
| 153 | memo.size(), MAX_COMMON_TX_MEMO_SIZE)); |
| 154 | return memo; |
| 155 | } |
| 156 | return ""; |
| 157 | } |
| 158 | |
| 159 | OpenMode GetOrderOpenMode(const Value &jsonValue) { |
| 160 | OpenMode ret = OpenMode::PRIVATE; |
no test coverage detected