Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app-extrinsics/src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type State = {
};

const defaultExtrinsic = extrinsics.staking.public.transfer;
const defaultRpc = rpc.author.methods.submitExtrinsic;
const defaultRpc = rpc.author.public.submitExtrinsic;

class Selection extends React.PureComponent<Props, State> {
state: State = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/app-rpc/src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type State = {
values: Array<RawParam>
}

const defaultMethod = rpc.author.methods.submitExtrinsic;
const defaultMethod = rpc.author.public.submitExtrinsic;

class Selection extends React.PureComponent<Props, State> {
state: State = {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-storage/src/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type State = {
params: RawParams
};

const defaultValue = storage.timestamp.keys.current;
const defaultValue = storage.timestamp.public.current;
let id = -1;

class Selection extends React.PureComponent<Props, State> {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-app/src/InputRpc/SelectMethod.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function SelectMethod ({ className, isError, label = '', onChange, options, styl
}

const transform = (name: Interface$Sections): Interface$Method =>
map[section].methods[name];
map[section].public[name];

return (
<Dropdown
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-app/src/InputRpc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class InputRpc extends React.PureComponent<Props, State> {
}

const optionsMethod = methodOptions(newSection);
const value = map[newSection].methods[optionsMethod[0].value];
const value = map[newSection].public[optionsMethod[0].value];

this.setState({ optionsMethod }, () =>
this.onMethodChange(value)
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-app/src/InputRpc/options/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export default function createOptions (sectionName: Interface$Sections): Dropdow
.keys(section.methods)
.sort()
.filter((name) => {
const { isDeprecated = false, isHidden = false, isSubscription = false } = section.methods[name];
const { isDeprecated = false, isHidden = false, isSubscription = false } = section.public[name];

return !isDeprecated && !isHidden && !isSubscription;
})
.map((name) => {
const { description = '', params = {} } = section.methods[name];
const { description = '', params = {} } = section.public[name];
const inputs = Object.keys(params).join(', ');

return {
Expand Down