Misc fixes after rebase
This commit is contained in:
parent
e2615e2def
commit
2c4f1e070d
|
@ -147,6 +147,14 @@ export const ensRecords = {
|
||||||
failure: (error) => action(ENS_RECORDS[FAILURE], {error})
|
failure: (error) => action(ENS_RECORDS[FAILURE], {error})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export const FIDDLE = createRequestTypes('FIDDLE');
|
||||||
|
export const fiddle = {
|
||||||
|
request: (codeToCompile) => action(FIDDLE[REQUEST], {codeToCompile}),
|
||||||
|
success: (fiddle) => action(FIDDLE[SUCCESS], {fiddles: [fiddle]}),
|
||||||
|
failure: (error) => action(FIDDLE[FAILURE], {error})
|
||||||
|
};
|
||||||
|
|
||||||
// Web Socket
|
// Web Socket
|
||||||
export const WATCH_NEW_PROCESS_LOGS = 'WATCH_NEW_PROCESS_LOGS';
|
export const WATCH_NEW_PROCESS_LOGS = 'WATCH_NEW_PROCESS_LOGS';
|
||||||
export const WATCH_NEW_CONTRACT_LOGS = 'WATCH_NEW_CONTRACT_LOGS';
|
export const WATCH_NEW_CONTRACT_LOGS = 'WATCH_NEW_CONTRACT_LOGS';
|
||||||
|
@ -171,11 +179,4 @@ export function initBlockHeader(){
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const FIDDLE = createRequestTypes('FIDDLE');
|
|
||||||
export const fiddle = {
|
|
||||||
request: (codeToCompile) => action(FIDDLE[REQUEST], {codeToCompile}),
|
|
||||||
success: (fiddle) => action(FIDDLE[SUCCESS], {fiddle}),
|
|
||||||
failure: (error) => action(FIDDLE[FAILURE], {error})
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ function mapStateToProps(state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionsContainer.propTypes = {
|
TransactionsContainer.propTypes = {
|
||||||
transactions: PropTypes.object,
|
transactions: PropTypes.arrayOf(PropTypes.object),
|
||||||
fetchTransactions: PropTypes.func,
|
fetchTransactions: PropTypes.func,
|
||||||
error: PropTypes.string,
|
error: PropTypes.string,
|
||||||
loading: PropTypes.bool
|
loading: PropTypes.bool
|
||||||
|
|
|
@ -16,7 +16,7 @@ const entitiesDefaultState = {
|
||||||
commands: [],
|
commands: [],
|
||||||
messages: [],
|
messages: [],
|
||||||
messageChannels: [],
|
messageChannels: [],
|
||||||
fiddle: null,
|
fiddles: [],
|
||||||
versions: [],
|
versions: [],
|
||||||
plugins: [],
|
plugins: [],
|
||||||
ensRecords: []
|
ensRecords: []
|
||||||
|
|
|
@ -91,7 +91,7 @@ export function getMessages(state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getFiddle(state) {
|
export function getFiddle(state) {
|
||||||
return state.entities.fiddle;
|
return state.entities.fiddles[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getEnsRecords(state) {
|
export function getEnsRecords(state) {
|
||||||
|
|
Loading…
Reference in New Issue