We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69fb794 commit 57facc2Copy full SHA for 57facc2
1 file changed
src/index.js
@@ -1164,12 +1164,14 @@ ChainsqlAPI.prototype.createSchema = function(schemaInfo){
1164
Account: this.connect.address,
1165
SchemaName:convertStringToHex(schemaInfo.SchemaName),
1166
SchemaStrategy: schemaInfo.WithState? 2:1,
1167
- SchemaAdmin: this.connect.address,
1168
Validators: schemaInfo.Validators,
1169
PeerList:peerlists,
1170
TransactionType: 'SchemaCreate'
1171
};
1172
+ if(schemaInfo.SchemaAdmin !== undefined){
1173
+ schemaCreateTxJson.SchemaAdmin = schemaInfo.SchemaAdmin;
1174
+ }
1175
1176
if(schemaCreateTxJson.SchemaStrategy === 2 ){
1177
0 commit comments