-
Notifications
You must be signed in to change notification settings - Fork 135
feat(dot/rpc): Add offchain_localStorageClear
RPC method
#4594
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
base: development
Are you sure you want to change the base?
feat(dot/rpc): Add offchain_localStorageClear
RPC method
#4594
Conversation
|
|
||
fetchWithTimeout(ctx, t, "offchain_localStorageClear", "", &response) | ||
|
||
// TODO assert response |
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.
Do you need help to finish this?
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.
Other t.Run
instances in this test function are also marked as TODO
, so I decided to add this one in the same way. Would you like to keep it as it is, implement this specific t.Run
, or implement all three?
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.
I think would be great to have at least this one implemented
@khssnv thanks for the contribution! I looks more like a draft since there are still some TODOs to finish. If that's the case, could you please convert it to a draft while you are working on it? |
Thanks for the review! Converted to draft. |
Changes
Implements new
offchain_localStorageClear
RPC method introduced to the Polkadot SDK in paritytech/polkadot-sdk#7266. Motivation paritytech/polkadot-sdk#7265.Tests
go test ./... -timeout=30m -run "^(Test_OffchainModule_LocalStorageClear|TestOffchainModule_LocalStorageClear|TestOffchainRPC)$"