Skip to content

Instantly share code, notes, and snippets.

View jlogelin-circle's full-sized avatar
🐇
Remember what the dormouse said

jlogelin-circle

🐇
Remember what the dormouse said
View GitHub Profile
//! Example that deploys a contract by forging and executing a contract creation transaction.
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
use anyhow::{anyhow, bail};
use circle_node::CircleEvmFactory;
use revm::{
bytecode::opcode,
context::{BlockEnv, CfgEnv, Context, TxEnv},
context_interface::result::{ExecutionResult, Output},
database::{CacheDB, DatabaseRef, InMemoryDB},