Skip to content

Commit 94afdbe

Browse files
committed
Fix calldata construction of single calldata
1 parent ce1b486 commit 94afdbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/format/src/input.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ impl Calldata {
136136
chain_state_provider: &impl EthereumNode,
137137
) -> anyhow::Result<()> {
138138
match self {
139-
Calldata::Single(string) => {
140-
alloy::hex::decode_to_slice(string, buffer)?;
139+
Calldata::Single(bytes) => {
140+
buffer.extend_from_slice(bytes);
141141
}
142142
Calldata::Compound(items) => {
143143
for (arg_idx, arg) in items.iter().enumerate() {

0 commit comments

Comments
 (0)