Skip to content

Commit

Permalink
MESH-1882: Allow non-zero priority (#1377)
Browse files Browse the repository at this point in the history
* Allow non-zero priority

* Clean up comment

* Update to golang 1.17
  • Loading branch information
adamdossa authored Jan 17, 2023
1 parent 4b25bda commit 09de6f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ jobs:
docker push --all-tags $IMAGE_NAME
publish-github-release:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- attach_workspace:
at: ./assets
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pallets/compliance-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ decl_module! {
const MaxConditionComplexity: u32 = T::MaxConditionComplexity::get();

/// Adds a compliance requirement to an asset's compliance by ticker.
/// If the compliance requirement is a duplicate, it does nothing.
/// If there are duplicate ClaimTypes for a particular trusted issuer, duplicates are removed.
///
/// # Arguments
/// * origin - Signer of the dispatchable. It should be the owner of the ticker
Expand Down
4 changes: 1 addition & 3 deletions pallets/runtime/extensions/src/check_weight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ where
/// Do the validate checks. This can be applied to both signed and unsigned.
///
/// It only checks that the block weight and length limit will not exceed.
/// NOTE The returned transaction priority is 0 on success.
fn do_validate(info: &DispatchInfoOf<T::Call>, len: usize) -> TransactionValidity {
let mut tv = CW::<T>::do_validate(info, len)?;
tv.priority = 0;
let tv = CW::<T>::do_validate(info, len)?;
Ok(tv)
}
}
Expand Down

0 comments on commit 09de6f4

Please sign in to comment.