Skip to content

Commit

Permalink
document EVM.run
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Jan 5, 2024
1 parent d2176fc commit 6dbd64d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions protocol/20231116-evm-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ To facilitate the wrapping operation and refunding, the run interface also allow

Any failure during the execution would revert the whole Flow transaction.

```cadence
access(all)
contract EVM {
/// Runs an a RLP-encoded EVM transaction, deducts the gas fees,
/// and deposits the gas fees into the provided coinbase address.
///
/// Returns true if the transaction was successful,
/// and returns false otherwise
access(all)
fun run(tx: [UInt8], coinbase: EVMAddress): Bool
}
```

```cadence
// Example of tx wrapping
import EVM from <ServiceAddress>
Expand Down

0 comments on commit 6dbd64d

Please sign in to comment.