View Source Signet (Signet v0.1.7)
Signet is a library for interacting with private keys, signatures, and Etheruem.
Link to this section Summary
Functions
Returns a contract address, that may have been set in configuration.
Link to this section Types
@type address() :: <<_::160>>
@type bytes32() :: <<_::256>>
@type signature() :: <<_::520>>
Link to this section Functions
Returns a contract address, that may have been set in configuration.
examples
Examples
iex> Signet.get_contract_address(<<1::160>>)
<<1::160>>
iex> Signet.get_contract_address("0x0000000000000000000000000000000000000001")
<<1::160>>
iex> Application.put_env(:signet, :contracts, [test: "0x0000000000000000000000000000000000000001"])
iex> Signet.get_contract_address(:test)
<<1::160>>
iex> Application.put_env(:signet, :contracts, [test: "0x0000000000000000000000000000000000000001"])
iex> Signet.get_contract_address(:test_00)
** (KeyError) key :test_00 not found in: [test: "0x0000000000000000000000000000000000000001"]