MultiSigWallet::submitTransaction contract does not explicitly return a transaction number.The user who will create money transfers will not obviously know what ID his transfer has.
The transaction ID will be returned after the function is called.
Every time the user will call the function and not receive the ID under which his transaction is reserved, which he needs to confirm later. Not every user has technical skills and will be able to read the code that transactions will be stored in an array.
Impact:
After creating a transaction request, the user will call the following function for confirmation at number 1. But his ID will be at number 0. Bad user experience and not a friendly application at all.
The user creates a transaction and goes to confirm it by calling id 1.
The test passes.
Ran 1 test for test/testMultiSig.t.sol:MultiSigWalletTest
[PASS] testSumbitTransaction() (gas: 90351)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 325.13µs (64.46µs CPU time)
Add index return to improve user experience.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.