Skip to content

Commit 7fb71d4

Browse files
committed
update extension id
1 parent 850f4d2 commit 7fb71d4

File tree

2 files changed

+4
-4
lines changed
  • composable_access_rules

2 files changed

+4
-4
lines changed

composable_access_rules/limited_use_rule_executor/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ use ink_prelude::string::String;
4343
pub trait Iris {
4444
type ErrorCode = IrisErr;
4545

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

4949
}
@@ -57,7 +57,7 @@ pub enum IrisErr {
5757
impl ink_env::chain_extension::FromStatusCode for IrisErr {
5858
fn from_status_code(status_code: u32) -> Result<(), Self> {
5959
match status_code {
60-
5 => Err(Self::FailSubmitResults),
60+
4 => Err(Self::FailSubmitResults),
6161
_ => panic!("encountered unknown status code {:?}", status_code),
6262
}
6363
}

composable_access_rules/trivial_rule_executor/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use ink_lang as ink;
4242
pub trait Iris {
4343
type ErrorCode = IrisErr;
4444

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

4848
}
@@ -57,7 +57,7 @@ pub enum IrisErr {
5757
impl ink_env::chain_extension::FromStatusCode for IrisErr {
5858
fn from_status_code(status_code: u32) -> Result<(), Self> {
5959
match status_code {
60-
5 => Err(Self::FailSubmitResults),
60+
4 => Err(Self::FailSubmitResults),
6161
_ => panic!("encountered unknown status code {:?}", status_code),
6262
}
6363
}

0 commit comments

Comments
 (0)