Skip to content

Commit

Permalink
Mock & fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Dec 14, 2023
1 parent 791243f commit dac1dd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions precompiles/dapps-staking-v3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ where
}

/// Attempts to stake the given amount on the given smart contract.
#[precompile::public("stake((u8,bytes),uint128)")]
#[precompile::public("stake((uint8,bytes),uint128)")]
fn stake(
handle: &mut impl PrecompileHandle,
smart_contract: SmartContractV2,
Expand All @@ -622,7 +622,7 @@ where
}

/// Attempts to unstake the given amount from the given smart contract.
#[precompile::public("unstake((u8,bytes),uint128)")]
#[precompile::public("unstake((uint8,bytes),uint128)")]
fn unstake(
handle: &mut impl PrecompileHandle,
smart_contract: SmartContractV2,
Expand Down Expand Up @@ -653,7 +653,7 @@ where
}

/// Attempts to claim bonus reward for being a loyal staker of the given dApp.
#[precompile::public("claim_bonus_reward((u8,bytes))")]
#[precompile::public("claim_bonus_reward((uint8,bytes))")]
fn claim_bonus_reward(
handle: &mut impl PrecompileHandle,
smart_contract: SmartContractV2,
Expand All @@ -670,7 +670,7 @@ where
}

/// Attempts to claim dApp reward for the given dApp in the given era.
#[precompile::public("claim_bonus_reward((u8,bytes),uint256)")]
#[precompile::public("claim_bonus_reward((uint8,bytes),uint256)")]
fn claim_dapp_reward(
handle: &mut impl PrecompileHandle,
smart_contract: SmartContractV2,
Expand All @@ -694,7 +694,7 @@ where
}

/// Attempts to unstake everything from an unregistered contract.
#[precompile::public("unstake_from_unregistered((u8,bytes))")]
#[precompile::public("unstake_from_unregistered((uint8,bytes))")]
fn unstake_from_unregistered(
handle: &mut impl PrecompileHandle,
smart_contract: SmartContractV2,
Expand Down
2 changes: 1 addition & 1 deletion precompiles/dapps-staking-v3/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

use super::*;

use fp_evm::IsPrecompileResult;
use fp_evm::{IsPrecompileResult, Precompile};
use frame_support::{
construct_runtime, parameter_types,
traits::{fungible::Mutate, ConstU128, ConstU64},
Expand Down

0 comments on commit dac1dd4

Please sign in to comment.