Skip to content

Commit

Permalink
[feat]: Add anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
woxjro committed Feb 7, 2024
1 parent b4c3c5d commit 89aff19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build = "build.rs"
lalrpop = "0.20.0"

[dependencies]
anyhow = "1.0.79"
clap = { version = "4.2.7", features = ["derive"] }
lalrpop-util = { version = "0.20.0", features = ["lexer", "unicode"] }
michelson-ast = { path = "./michelson-ast" }
Expand Down
5 changes: 2 additions & 3 deletions src/michelify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ use crate::mlir::{
ast::{Operation, Value},
dialect::michelson::ast::Type,
};
use anyhow::Result;
use michelson_ast;
use std::collections::HashMap;

pub fn compile(
smart_contract: Operation,
) -> Result<michelson_ast::program::Program, Box<dyn std::error::Error>> {
pub fn compile(smart_contract: Operation) -> Result<michelson_ast::program::Program> {
/*
* HashMap that returns the position of a Value on the Michelson Stack as its Key
* Note that it returns the relative position in the register area of Value, using a 1-index
Expand Down

0 comments on commit 89aff19

Please sign in to comment.