Skip to content

Commit 57facc2

Browse files
committed
fix bug RR-2777(set the parameter SchemaAdmin of schemaCreate)
1 parent 69fb794 commit 57facc2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,12 +1164,14 @@ ChainsqlAPI.prototype.createSchema = function(schemaInfo){
11641164
Account: this.connect.address,
11651165
SchemaName:convertStringToHex(schemaInfo.SchemaName),
11661166
SchemaStrategy: schemaInfo.WithState? 2:1,
1167-
SchemaAdmin: this.connect.address,
11681167
Validators: schemaInfo.Validators,
11691168
PeerList:peerlists,
11701169
TransactionType: 'SchemaCreate'
11711170
};
11721171

1172+
if(schemaInfo.SchemaAdmin !== undefined){
1173+
schemaCreateTxJson.SchemaAdmin = schemaInfo.SchemaAdmin;
1174+
}
11731175

11741176
if(schemaCreateTxJson.SchemaStrategy === 2 ){
11751177

0 commit comments

Comments
 (0)