Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Nov 12, 2024
1 parent d658039 commit 647b875
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions pallets/external-validator-slashes/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Tanssi. If not, see <http://www.gnu.org/licenses/>

use snowbridge_core::outbound::Fee;
use snowbridge_core::outbound::SendError;
use snowbridge_core::outbound::SendMessage;
use snowbridge_core::outbound::SendMessageFeeProvider;
use {
crate as external_validator_slashes,
Expand Down Expand Up @@ -201,21 +199,9 @@ impl DeferPeriodGetter {
}

pub struct MockOkOutboundQueue;
impl SendMessage for MockOkOutboundQueue {
impl tp_bridge::DeliverMessage for MockOkOutboundQueue {
type Ticket = ();

fn validate(
_: &snowbridge_core::outbound::Message,
) -> Result<(Self::Ticket, Fee<Self::Balance>), SendError> {
Ok((
(),
Fee {
local: 1,
remote: 1,
},
))
}

fn deliver(_: Self::Ticket) -> Result<H256, SendError> {
Ok(H256::zero())
}
Expand Down

0 comments on commit 647b875

Please sign in to comment.