From 3a49d0058c77f758c42568f6ba48645def3b6a1b Mon Sep 17 00:00:00 2001 From: cedric ogire Date: Wed, 15 Mar 2023 10:41:56 +0800 Subject: [PATCH] Fix format of errors for strings --- src/masternodes/errors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/masternodes/errors.h b/src/masternodes/errors.h index 30fe3ab6fb..f6ff28caae 100644 --- a/src/masternodes/errors.h +++ b/src/masternodes/errors.h @@ -298,11 +298,11 @@ class DeFiErrors { } static Res GovVarApplyInvalidFactor(const CAmount ratio) { - return Res::Err("Factor cannot be more than or equal to the lowest scheme rate of %d", GetDecimalString(ratio * CENT)); + return Res::Err("Factor cannot be more than or equal to the lowest scheme rate of %s", GetDecimalString(ratio * CENT)); } static Res GovVarApplyDFIPActive(const std::string &str) { - return Res::Err("Cannot set block period while %d is active", str); + return Res::Err("Cannot set block period while %s is active", str); } static Res GovVarApplyBelowHeight() {