Fix RPC error code conflict (#14315)

* Base error code module

* Base error code module

* fmt
This commit is contained in:
Arkadiy Paronyan
2023-06-09 18:24:49 +02:00
committed by GitHub
parent ee895b3986
commit 881fd1e0dc
9 changed files with 36 additions and 7 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ pub enum Error {
}
/// Base code for all authorship errors.
const BASE_ERROR: i32 = 1000;
const BASE_ERROR: i32 = crate::error::base::AUTHOR;
/// Extrinsic has an invalid format.
const BAD_FORMAT: i32 = BASE_ERROR + 1;
/// Error during transaction verification in runtime.