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

Add oracle data pointer check #1194

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Add oracle data pointer check #1194

merged 3 commits into from
Dec 5, 2024

Conversation

JesseAbram
Copy link
Member

@JesseAbram JesseAbram commented Dec 3, 2024

Closes #1166

@JesseAbram JesseAbram marked this pull request as ready for review December 4, 2024 16:15
Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 Good move, having checks like this is definitely a good thing

@@ -22,6 +22,7 @@ sp-std ={ version="14.0.0", default-features=false }
smallvec="1.13.2"

pallet-balances={ version="29.0.0" }
pallet-oracle ={ version='0.3.0', path='../oracle', default-features=false }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because the oracle config is now part of the programs config, and programs is a dependency of transaction-pause right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup exactly

@@ -218,10 +218,14 @@ pub mod pallet {
ProgramAlreadySet,
/// User owns too many programs.
TooManyProgramsOwned,
/// Program is being used by an account
/// Program is being used by an account.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding these is gonna make @HCastano happy

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, why I did it, but I also rolled my eyes while doing it

@JesseAbram JesseAbram merged commit 765a86e into master Dec 5, 2024
8 checks passed
@JesseAbram JesseAbram deleted the oracle-data-pointer-check branch December 5, 2024 14:58
ameba23 added a commit that referenced this pull request Dec 9, 2024
* master:
  Bump thiserror from 2.0.4 to 2.0.6 in the patch-dependencies group (#1206)
  Downgrade parity-scale-codec as version we currently use has been yanked (#1205)
  Bump clap from 4.5.22 to 4.5.23 in the patch-dependencies group (#1202)
  Add oracle data pointer check (#1194)
  Bump tokio from 1.41.1 to 1.42.0 (#1196)
  Allow offchain worker requests to all TSS nodes in `entropy-tss` test environment  (#1147)
  Bump the patch-dependencies group with 3 updates (#1195)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oracle data pointer check
2 participants