Update stored data when data transaction is confirmed by Metamask
Feature Description
update assessment 'data' when onchain 'data' is confirmed
Motivation and Context
Currently, storeDataOnAssessment waits for 'on.receipt' to fetchStoredData
'.on('receipt', (receipt) => { if (receipt.status === '0x01') { dispatch(fetchStoredData(address)) } })'
the receipt arrives before the data is 'confirmed', so the "fetchStoreData" updates data with the old data
Possible Implementation
I think using a callback instead of on.receipt could do the trick, or maybe another event, we should look into the doc
Edited by Antoine Estienne