Skip to content

Commit

Permalink
Format Lua code
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed May 31, 2023
1 parent 649731d commit a59b19c
Show file tree
Hide file tree
Showing 19 changed files with 2,908 additions and 2,817 deletions.
5 changes: 3 additions & 2 deletions src/cartesi-machine-stored-hash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
-- along with the machine-emulator. If not, see http://www.gnu.org/licenses/.
--

local util = require"cartesi.util"
local util = require("cartesi.util")

local f = assert(
io.open(assert(arg[1], "missing machine name") .. "/hash", "rb"),
string.format("unable to open machine '%s'", tostring(arg[1])))
string.format("unable to open machine '%s'", tostring(arg[1]))
)
local h = assert(f:read("a"), "unable to read hash")
f:close()
print(util.hexhash(h))
Loading

0 comments on commit a59b19c

Please sign in to comment.