Misc fixes after rebase

This commit is contained in:
Anthony Laibe 2018-08-14 11:09:13 +01:00 committed by Pascal Precht
parent 3bb15194ea
commit 9e7d7bbee2
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
4 changed files with 11 additions and 10 deletions

View File

@ -147,6 +147,14 @@ export const ensRecords = {
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
export const WATCH_NEW_PROCESS_LOGS = 'WATCH_NEW_PROCESS_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})
};

View File

@ -42,7 +42,7 @@ function mapStateToProps(state) {
}
TransactionsContainer.propTypes = {
transactions: PropTypes.object,
transactions: PropTypes.arrayOf(PropTypes.object),
fetchTransactions: PropTypes.func,
error: PropTypes.string,
loading: PropTypes.bool

View File

@ -16,7 +16,7 @@ const entitiesDefaultState = {
commands: [],
messages: [],
messageChannels: [],
fiddle: null,
fiddles: [],
versions: [],
plugins: [],
ensRecords: []

View File

@ -91,7 +91,7 @@ export function getMessages(state) {
}
export function getFiddle(state) {
return state.entities.fiddle;
return state.entities.fiddles[0];
}
export function getEnsRecords(state) {