Skip to content

Instantly share code, notes, and snippets.

@devonwesley
Last active December 20, 2017 02:29
Show Gist options
  • Save devonwesley/878bc7f1950d0093a37f8cbe521a626a to your computer and use it in GitHub Desktop.
Save devonwesley/878bc7f1950d0093a37f8cbe521a626a to your computer and use it in GitHub Desktop.
This is the information about the contract and transaction that we don't want.
function filterProps(prop) {
const excludes = {
'_eth': '_eth',
'abi': 'abi',
'allEvents': 'allEvents',
'to': 'to',
'value': 'value',
'blockNumber': 'blockNumber',
'address': 'address',
'transactionHash': 'transactionHash',
}
return excludes[prop]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment