Add a helper like:
surfnet.replayTransaction(signature)
What it should do :
Fetch transaction using getTransaction.
Extract all account addresses from the tx.
Fetch account data (getAccountInfo).
Load those accounts into Surfpool (setAccount)
Re-run the transaction locally using existing profileTransaction
Return logs + error
Add a helper like:
surfnet.replayTransaction(signature)
What it should do :
Fetch transaction using getTransaction.
Extract all account addresses from the tx.
Fetch account data (getAccountInfo).
Load those accounts into Surfpool (setAccount)
Re-run the transaction locally using existing profileTransaction
Return logs + error