Translations: Lightweight Contracts/225/en: Difference between revisions

From ArdorDocs
Jump to: navigation, search
(Importing a new version from external source)
 
(No difference)

Latest revision as of 00:38, 11 August 2020

Message definition (Lightweight Contracts)
A contract that requires elevated permissions from the contract runner should start by checking that these permissions were granted, if not, it should fail gracefully. Use the <code>context.isPermissionGranted()</code> API to check if a specific permission is granted. See the DatabaseAccess sample contract for example how to check for permissions. If a required permission is not granted, log an error message and return.

A contract that requires elevated permissions from the contract runner should start by checking that these permissions were granted, if not, it should fail gracefully. Use the context.isPermissionGranted() API to check if a specific permission is granted. See the DatabaseAccess sample contract for example how to check for permissions. If a required permission is not granted, log an error message and return.