mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
function CheckInitialized renamed
Signed-off-by: Rajat Sharma <connecttorajat@outlook.com>
This commit is contained in:
parent
ef42c0a094
commit
e00841bd10
1 changed files with 1 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ class TokenERC721Contract extends Contract {
|
|||
}
|
||||
|
||||
//Checks that contract options have been already initialized
|
||||
async CheckIntitialized(ctx){
|
||||
async CheckInitialized(ctx){
|
||||
const nameBytes = await ctx.stub.getState(nameKey);
|
||||
if (!nameBytes || nameBytes.length === 0) {
|
||||
throw new Error('contract options need to be set before calling any function, call Initialize() to initialize contract');
|
||||
|
|
|
|||
Loading…
Reference in a new issue