Replace strUnHex pair return type with optional<Blob>

This commit is contained in:
seelabs
2019-08-14 13:13:45 -07:00
parent 7912ee6f7b
commit 0a256247a0
13 changed files with 48 additions and 47 deletions

View File

@@ -143,9 +143,9 @@ struct Regression_test : public beast::unit_test::suite
// Set the same key in the STTx.
auto secp256r1Sig = std::make_unique<STTx>(*(jt.stx));
auto pubKeyBlob = strUnHex (secp256r1PubKey);
assert (pubKeyBlob.second); // Hex for public key must be valid
assert (pubKeyBlob); // Hex for public key must be valid
secp256r1Sig->setFieldVL
(sfSigningPubKey, std::move(pubKeyBlob.first));
(sfSigningPubKey, std::move(*pubKeyBlob));
jt.stx.reset (secp256r1Sig.release());
env (jt, ter (temINVALID));