Skip to content

Commit

Permalink
book: add skip_if_declared option for declare
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Nov 7, 2023
1 parent 946dd38 commit 04fedaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion book/src/functions/declare.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ string
-- The path to locate contract artifacts. For now, this path is relative
-- to where you execute `kipt`. Be aware of that.
artifacts_path = string,
-- If the class is already declared, no error is returned, the declaration
-- is skipped and the class hash is returned. The default value is false.
skip_if_declared = bool,

-- Any other keys in the table are ignored.
}

-- @return - A table on success, string error otherwise.
{
-- The transaction hash.
-- The transaction hash (only if `skip_if_declared` is false).
tx_hash = string,
-- The declared class hash (Sierra class hash).
class_hash = string,
Expand Down

0 comments on commit 04fedaf

Please sign in to comment.