Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.0 legacy contracts #942

Merged
merged 18 commits into from
Aug 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
small fix
  • Loading branch information
psorinionut committed Aug 14, 2024
commit 57d14d98fa2a47fc46464c1a81f57908612409c6
4 changes: 2 additions & 2 deletions legacy-contracts/farm-v13-custom-rewards/src/lib.rs
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ pub trait FarmV13CustomRewards {
_token_display_name: ManagedBuffer,
_token_ticker: ManagedBuffer,
_num_decimals: usize,
) -> SCResult<INCORRECTReturnType<Self::Api>> {
) -> INCORRECTReturnType<Self::Api> {
sc_panic!("This is a no-code version of a legacy contract. The logic of the endpoints has not been implemented.");
}

@@ -222,7 +222,7 @@ pub trait FarmV13CustomRewards {
}

#[endpoint(setLocalRolesFarmToken)]
fn set_local_roles_farm_token(&self) -> SCResult<INCORRECTReturnType<Self::Api>> {
fn set_local_roles_farm_token(&self) -> INCORRECTReturnType<Self::Api> {
sc_panic!("This is a no-code version of a legacy contract. The logic of the endpoints has not been implemented.");
}