From 6dbd64d32d5a9d78d04c958118a300958e4ea93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Thu, 4 Jan 2024 16:56:14 -0800 Subject: [PATCH] document EVM.run --- protocol/20231116-evm-support.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/protocol/20231116-evm-support.md b/protocol/20231116-evm-support.md index 7b2158e2..aba7c5cf 100644 --- a/protocol/20231116-evm-support.md +++ b/protocol/20231116-evm-support.md @@ -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