-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix #447 Add rpc endpoint for AutomationPrice #458
Conversation
95222ae
to
68d10e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me 👌
cdc9cc0
to
369b795
Compare
4a6001e
to
46491a6
Compare
29bb3bb
to
1a37701
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good.
@@ -24,6 +24,10 @@ include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); | |||
|
|||
use codec::{Decode, Encode, MaxEncodedLen}; | |||
use hex_literal::hex; | |||
|
|||
// TODO: The FeeDetails RPC is very similar between time/price, it maybe worth to extract them out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I recorded a Jira ticket for this TODO.
pallets/automation-price/src/lib.rs
Outdated
#[cfg(not(feature = "dev-queue"))] | ||
ensure_root(origin)?; | ||
// #[cfg(not(feature = "dev-queue"))] | ||
// ensure_root(origin)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this line is not really needed, because we always have sudo access with dev-queue
in local environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah this is bad merge. we do need this. it wasn't working so i had to comment it out for test. but after I fixed in this #459 PR then the flag will be pass to this pallet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, yeah I remember commenting on this line 😅
Note: I still had some compilation issue with the
runtime/oak
. it looks likeruntime/oak
has missing some code around automation price pallet setup at first place.Eventually we will need to find a way to consolidate the setup between the runtime env and reduce amount of boiler plate code.