Skip to content

Commit

Permalink
Move to our own published crate instead of Git repo for ethabi crate. (
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao authored Jan 18, 2023
1 parent f18197f commit acd4c1e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 18 deletions.
35 changes: 18 additions & 17 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion sway-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ clap = { version = "3.1", features = ["derive"] }
derivative = "2.2.0"
dirs = "3.0"
either = "1.6"
ethabi = { git = "https://github.com/FuelLabs/ethabi.git", rev = "00a8fdb133d51b99eabbf9db7b7d55bad75becd7" }
etk-asm = { version = "0.2.1", features = ["backtraces"] }
fuel-abi-types = "0.1"
fuel-ethabi = { version = "18.0.0" }
fuel-vm = { version = "0.22", features = ["serde"] }
hashbrown = "0.13.1"
hex = { version = "0.4", optional = true }
Expand Down
4 changes: 4 additions & 0 deletions sway-core/src/asm_generation/evm/evm_asm_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ use sway_types::Span;

use etk_asm::{asm::Assembler, ops::*};

mod ethabi {
pub use fuel_ethabi::*;
}

/// A smart contract is created by sending a transaction with an empty "to" field.
/// When this is done, the Ethereum virtual machine (EVM) runs the bytecode which is
/// set in the init byte array which is a field that can contain EVM bytecode
Expand Down
4 changes: 4 additions & 0 deletions sway-core/src/asm_generation/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ use crate::{
decl_engine::DeclId,
};

mod ethabi {
pub use fuel_ethabi::*;
}

type SelectorOpt = Option<[u8; 4]>;
type FnName = String;
type ImmOffset = u64;
Expand Down

0 comments on commit acd4c1e

Please sign in to comment.