function CheckInitialized renamed

Signed-off-by: Rajat Sharma <connecttorajat@outlook.com>
This commit is contained in:
Rajat Sharma 2022-06-14 18:40:52 +05:30 committed by Dave Enyeart
parent ef42c0a094
commit e00841bd10

View file

@ -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');