Hello,
I am also struggling to withdraw my depost of 1ETH, I don't really understand where to put that code?
Do I need to download and deploy the github repository ? If yes please can you guide me on what is the easiest way to do this? using github actions? or AWS?
Thank you for your help
Hello, I was just able to withdraw and so here is a detailed guide on how to do it. This assumes you have a working RPC endpoint.
1. Build your own UI
* Run the following commands:
git clone https://github.com/tornadocash-community/tornado-classic-ui
cd tornado-classic-ui/
nvm use
yarn
cp .env.example .env
yarn generate
yarn start
2. Reproduce the error locally
* On your browser, open `http://localhost:3000`
* Add your custom RPC endpoint
* Try to withdraw
* You get "Failed to fetch all deposit events from contract" in the UI
* You get "Missing deposit event for deposit #51577" in the console
3. Add the aforementioned fix to your UI code
* Stop the `yarn start` command you ran earlier
* Open `store/application.js` with a text editor
* Go to line `678`
* Insert the following code in that line:
// start custom code
// https://bitcointalk.org/index.php?topic=5412746.0
const index = eventsData.events.findIndex((e) => e.leafIndex === 51576)
eventsData.events.splice(index + 1, 0, {
timestamp: '1661850816',
commitment: '0x0327e815deb9e90c88860561147d661905b28853fd996f0add1769b00226d0d4',
leafIndex: 51577,
blockNumber: 15439539,
transactionHash: '0xd20351a0e2a9a3f40cb1f55236b30185184587b05551e5e4399c4dbf7aa3ca95'
})
// end
* Save and close
4. Withdraw
* Run the following commands:
* On your browser, open `http://localhost:3000`
* Try to withdraw
* Success !