Skip to content

Commit 3eec902

Browse files
committed
fix bug RR-2777(set the parameter SchemaAdmin of schemaCreate)
1 parent d03d659 commit 3eec902

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
@@ -1156,12 +1156,14 @@ ChainsqlAPI.prototype.createSchema = function(schemaInfo){
11561156
Account: this.connect.address,
11571157
SchemaName:convertStringToHex(schemaInfo.SchemaName),
11581158
SchemaStrategy: schemaInfo.WithState? 2:1,
1159-
SchemaAdmin: this.connect.address,
11601159
Validators: schemaInfo.Validators,
11611160
PeerList:peerlists,
11621161
TransactionType: 'SchemaCreate'
11631162
};
11641163

1164+
if(schemaInfo.SchemaAdmin !== undefined){
1165+
schemaCreateTxJson.SchemaAdmin = schemaInfo.SchemaAdmin;
1166+
}
11651167

11661168
if(schemaCreateTxJson.SchemaStrategy === 2 ){
11671169

0 commit comments

Comments
 (0)