mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47:58 +00:00
Transaction eras (#758)
* Initial groundwork * A mess. * Integrate * Fix tests * Unit tests * Tests for unchecked_extrisnic * fix tab * Improve binary format. * fix tests * Rename extrinsic-pool -> transaction-pool Closes #770 * Implement unimplemented. * typo
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use extrinsic_pool;
|
||||
use transaction_pool;
|
||||
use node_api;
|
||||
use primitives::Hash;
|
||||
use runtime::{Address, UncheckedExtrinsic};
|
||||
|
||||
error_chain! {
|
||||
links {
|
||||
Pool(extrinsic_pool::Error, extrinsic_pool::ErrorKind);
|
||||
Pool(transaction_pool::Error, transaction_pool::ErrorKind);
|
||||
Api(node_api::Error, node_api::ErrorKind);
|
||||
}
|
||||
errors {
|
||||
@@ -63,10 +63,10 @@ error_chain! {
|
||||
}
|
||||
}
|
||||
|
||||
impl extrinsic_pool::IntoPoolError for Error {
|
||||
fn into_pool_error(self) -> ::std::result::Result<extrinsic_pool::Error, Self> {
|
||||
impl transaction_pool::IntoPoolError for Error {
|
||||
fn into_pool_error(self) -> ::std::result::Result<transaction_pool::Error, Self> {
|
||||
match self {
|
||||
Error(ErrorKind::Pool(e), c) => Ok(extrinsic_pool::Error(e, c)),
|
||||
Error(ErrorKind::Pool(e), c) => Ok(transaction_pool::Error(e, c)),
|
||||
e => Err(e),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user