Refactoring of Tokens & Balances (#5372)
* Remove ETH filter * Remove unused Blockchain reducer+actions * Simpler Token updates and fetching * Cleanup use of balances * Cleanup of balances * Cleanup of Balances * Linting * Update List Component * Separate tokens from balances * Refactoring balance fetchin and storing - Part I * Linting * Better ETH token description and use * Working Transfer with new logic * Add debugging * Querying the tokens filter on new block * Fixing the tests - PART I * Fix txCount
This commit is contained in:
committed by
Jaco Greeff
parent
fc18299869
commit
37690cfde2
@@ -653,10 +653,10 @@ class MethodDecoding extends Component {
|
||||
}
|
||||
|
||||
function mapStateToProps (initState, initProps) {
|
||||
const { tokens } = initState.balances;
|
||||
const { tokens } = initState;
|
||||
const { transaction } = initProps;
|
||||
|
||||
const token = (tokens || {})[transaction.to];
|
||||
const token = Object.values(tokens).find((token) => token.address === transaction.to);
|
||||
|
||||
return () => {
|
||||
return { token };
|
||||
|
||||
Reference in New Issue
Block a user