Unverified Commit 828352e3 authored by Austin Abell's avatar Austin Abell Committed by GitHub
Browse files

Implement decode for example error types (#761)

* Implement decode for erc 20 error types

* Also add for contract-transfer
parent b8284168
Pipeline #134526 passed with stages
in 36 minutes and 40 seconds
......@@ -27,7 +27,7 @@ pub mod give_me {
pub struct GiveMe {}
/// The error types.
#[derive(Debug, PartialEq, Eq, scale::Encode)]
#[derive(Debug, PartialEq, Eq, scale::Encode, scale::Decode)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub enum Error {
/// Returned if the transfer failed.
......
......@@ -60,7 +60,7 @@ mod erc20 {
}
/// The ERC-20 error types.
#[derive(Debug, PartialEq, Eq, scale::Encode)]
#[derive(Debug, PartialEq, Eq, scale::Encode, scale::Decode)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub enum Error {
/// Returned if not enough balance to fulfill a request is available.
......
......@@ -34,7 +34,7 @@ mod erc20 {
};
/// The ERC-20 error types.
#[derive(Debug, PartialEq, Eq, scale::Encode)]
#[derive(Debug, PartialEq, Eq, scale::Encode, scale::Decode)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub enum Error {
/// Returned if not enough balance to fulfill a request is available.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment