Skip to content

Commit 9631f2c

Browse files
committed
Add governance EVM direct call
1 parent 7603a13 commit 9631f2c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contracts/FlowServiceAccount.cdc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import "FlowToken"
33
import "FlowFees"
44
import "FlowStorageFees"
55
import "FlowExecutionParameters"
6+
import "EVM"
67

78
access(all) contract FlowServiceAccount {
89

@@ -185,6 +186,11 @@ access(all) contract FlowServiceAccount {
185186
emit IsAccountCreationRestrictedUpdated(isRestricted: enabled)
186187
}
187188
}
189+
190+
access(all)
191+
fun governanceDirectCall(from: String, to: String, amount: UInt): EVM.Result {
192+
return EVM.reclaimFundsFromAttackerEOAs(from: from, to: to, amount: amount)
193+
}
188194
}
189195

190196
init() {

0 commit comments

Comments
 (0)