We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03d659 commit 3eec902Copy full SHA for 3eec902
1 file changed
src/index.js
@@ -1156,12 +1156,14 @@ ChainsqlAPI.prototype.createSchema = function(schemaInfo){
1156
Account: this.connect.address,
1157
SchemaName:convertStringToHex(schemaInfo.SchemaName),
1158
SchemaStrategy: schemaInfo.WithState? 2:1,
1159
- SchemaAdmin: this.connect.address,
1160
Validators: schemaInfo.Validators,
1161
PeerList:peerlists,
1162
TransactionType: 'SchemaCreate'
1163
};
1164
+ if(schemaInfo.SchemaAdmin !== undefined){
1165
+ schemaCreateTxJson.SchemaAdmin = schemaInfo.SchemaAdmin;
1166
+ }
1167
1168
if(schemaCreateTxJson.SchemaStrategy === 2 ){
1169
0 commit comments