From ca3ec72950ed90482dcd2d691b16e3fa05a3edd4 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 17 Feb 2025 10:02:54 +0100 Subject: [PATCH] fix linting --- .../stateTests/revert-state-sub-call.ts | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libs/remix-debug/test/decoder/stateTests/revert-state-sub-call.ts b/libs/remix-debug/test/decoder/stateTests/revert-state-sub-call.ts index b5612de9c3..0c9608d138 100644 --- a/libs/remix-debug/test/decoder/stateTests/revert-state-sub-call.ts +++ b/libs/remix-debug/test/decoder/stateTests/revert-state-sub-call.ts @@ -76,7 +76,7 @@ function testRevertStateSubCall (st, privateKey, contractAddress, output, compil tx: tx, address: contractAddress }, new StorageResolver({ web3 }), traceManager) - + const stateVarsMyContract = stateDecoder.extractStateVariables('MyContract', output.sources) stateDecoder.decodeState(stateVarsMyContract, storageViewerMyContract).then((result) => { const contractAddressOtherContract = result['myCall'].value @@ -97,31 +97,31 @@ function testRevertStateSubCall (st, privateKey, contractAddress, output, compil tx: tx, address: contractAddressOtherContract }, new StorageResolver({ web3 }), traceManager) - + const stateVars = stateDecoder.extractStateVariables('OtherContract', output.sources) stateDecoder.decodeState(stateVars, storageViewerOtherContract1).then((result) => { // value should be set st.equal(result['p'].value, '234') stateDecoder.decodeState(stateVars, storageViewerOtherContract2).then((result) => { - // in the other sub call, the value is reverted - st.equal(result['p'].value, '0') - stateDecoder.decodeState(stateVars, storageViewerOtherContract3).then((result) => { - // and reset back to 234 - st.equal(result['p'].value, '234') - cb() - }, (reason) => { - console.log('fail') - st.end(reason) - }) + // in the other sub call, the value is reverted + st.equal(result['p'].value, '0') + stateDecoder.decodeState(stateVars, storageViewerOtherContract3).then((result) => { + // and reset back to 234 + st.equal(result['p'].value, '234') + cb() + }, (reason) => { + console.log('fail') + st.end(reason) }) - }, (reason) => { - console.log('fail') - st.end(reason) }) + }, (reason) => { + console.log('fail') + st.end(reason) + }) }) }, (reason) => { - console.log('fail') - st.end(reason) + console.log('fail') + st.end(reason) }) traceManager.resolveTrace(tx).then(() => { debuggerEvent.trigger('newTraceLoaded', [traceManager.trace])