Translations:Lightweight Contracts/113/en

From ArdorDocs
Revision as of 14:51, 18 June 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To load the contract runner parameters specified in the contract runner configuration file for the specific contract use

context.getContractRunnerConfigParams(getClass().getSimpleName())

or preferably define the parameter as a method of an inner interface decorated with @ContractParametersProvider annotation. Name the method the same as the parameter name and decorate it with the @ContractRunnerParameter annotation.