This adds support for generating ADDRESS constants for contracts and predicates by optionally providing the path to the compiled contract associated with the ABI.
The pint_abi::gen_from_file! macro API has been changed slightly. Previously, it was used like so:
The contract field is optional. When provided, the contract at the specified path will be used to determine the contract and predicate ADDRESS consts and include them in their associated generated modules. If not provided, the old behaviour remains the same.
This adds support for generating
ADDRESS
constants for contracts and predicates by optionally providing the path to the compiled contract associated with the ABI.The
pint_abi::gen_from_file!
macro API has been changed slightly. Previously, it was used like so:Now, the invocation looks like:
The
contract
field is optional. When provided, the contract at the specified path will be used to determine the contract and predicateADDRESS
consts and include them in their associated generated modules. If not provided, the old behaviour remains the same.