Skip to content

Commit

Permalink
update extension id
Browse files Browse the repository at this point in the history
  • Loading branch information
driemworks committed Dec 14, 2022
1 parent 850f4d2 commit 7fb71d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composable_access_rules/limited_use_rule_executor/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use ink_prelude::string::String;
pub trait Iris {
type ErrorCode = IrisErr;

#[ink(extension = 5, returns_result = false)]
#[ink(extension = 4, returns_result = false)]
fn submit_results(caller: ink_env::AccountId, consumer: ink_env::AccountId, asset_id: u32, result: bool, public_key: [u8;32]) -> [u8; 32];

}
Expand All @@ -57,7 +57,7 @@ pub enum IrisErr {
impl ink_env::chain_extension::FromStatusCode for IrisErr {
fn from_status_code(status_code: u32) -> Result<(), Self> {
match status_code {
5 => Err(Self::FailSubmitResults),
4 => Err(Self::FailSubmitResults),
_ => panic!("encountered unknown status code {:?}", status_code),
}
}
Expand Down
4 changes: 2 additions & 2 deletions composable_access_rules/trivial_rule_executor/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use ink_lang as ink;
pub trait Iris {
type ErrorCode = IrisErr;

#[ink(extension = 5, returns_result = false)]
#[ink(extension = 4, returns_result = false)]
fn submit_results(caller: ink_env::AccountId, consumer: ink_env::AccountId, asset_id: u32, result: bool, public_key: [u8;32]) -> [u8; 32];

}
Expand All @@ -57,7 +57,7 @@ pub enum IrisErr {
impl ink_env::chain_extension::FromStatusCode for IrisErr {
fn from_status_code(status_code: u32) -> Result<(), Self> {
match status_code {
5 => Err(Self::FailSubmitResults),
4 => Err(Self::FailSubmitResults),
_ => panic!("encountered unknown status code {:?}", status_code),
}
}
Expand Down

0 comments on commit 7fb71d4

Please sign in to comment.