Skip to content

Commit

Permalink
fix(contracts): change so that only recipient can withdraw from vault
Browse files Browse the repository at this point in the history
In the previous code, anyone can call `withdraw` or `withdrawToL2`
and the reward is sent to the caller. This need to be fixed so that
the reward is sent to the recipient.
And I added a modifier that only the recipient can call.
In case of `withdraw`, it requires additional action on L1 (prove and finalize),
 so this should be controlled only by the recipient.
  • Loading branch information
0xHansLee committed Dec 12, 2023
1 parent ad13d34 commit 6ec3626
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bindings/bindings/l1feevault.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6ec3626

Please sign in to comment.