@@ -68,7 +68,7 @@ func GetKeyInfo(accountName string) (KeyInfo, int) {
68
68
return keyInfo , code
69
69
}
70
70
71
- func ProposeAddAccount (keyInfo KeyInfo , signer KeyInfo , roles auth.AccountRoles , vendorId uint16 ) (TxnResponse , int ) {
71
+ func ProposeAddAccount (keyInfo KeyInfo , signer KeyInfo , roles auth.AccountRoles , vendorID uint16 ) (TxnResponse , int ) {
72
72
println ("Propose Add Account for: " , keyInfo .Name )
73
73
74
74
request := authRest.ProposeAddAccountRequest {
@@ -79,7 +79,7 @@ func ProposeAddAccount(keyInfo KeyInfo, signer KeyInfo, roles auth.AccountRoles,
79
79
Address : keyInfo .Address ,
80
80
Pubkey : keyInfo .PublicKey ,
81
81
Roles : roles ,
82
- VendorId : vendorId ,
82
+ VendorID : vendorID ,
83
83
}
84
84
85
85
body , _ := codec .MarshalJSONIndent (app .MakeCodec (), request )
@@ -201,7 +201,7 @@ func GetProposedAccountsToRevoke() (ProposedAccountToRevokeHeadersResult, int) {
201
201
return result , code
202
202
}
203
203
204
- func CreateNewAccount (roles auth.AccountRoles , vendorId uint16 ) KeyInfo {
204
+ func CreateNewAccount (roles auth.AccountRoles , vendorID uint16 ) KeyInfo {
205
205
name := RandString ()
206
206
println ("Register new account on the ledger: " , name )
207
207
@@ -210,7 +210,7 @@ func CreateNewAccount(roles auth.AccountRoles, vendorId uint16) KeyInfo {
210
210
211
211
keyInfo , _ := CreateKey (name )
212
212
213
- ProposeAddAccount (keyInfo , jackKeyInfo , roles , vendorId )
213
+ ProposeAddAccount (keyInfo , jackKeyInfo , roles , vendorID )
214
214
ApproveAddAccount (keyInfo , aliceKeyInfo )
215
215
216
216
return keyInfo
@@ -540,7 +540,8 @@ func SendCertifiedModelRequest(certifyModel compliance.MsgCertifyModel, name str
540
540
body , _ := codec .MarshalJSONIndent (app .MakeCodec (), request )
541
541
542
542
uri := fmt .Sprintf ("%s/%v/%v/%v/%v/%v/%v" , compliance .RouterKey , compliance .Certified ,
543
- certifyModel .VID , certifyModel .PID , certifyModel .SoftwareVersion , certifyModel .SoftwareVersionString , certifyModel .CertificationType )
543
+ certifyModel .VID , certifyModel .PID , certifyModel .SoftwareVersion ,
544
+ certifyModel .SoftwareVersionString , certifyModel .CertificationType )
544
545
545
546
return SendPutRequest (uri , body , name , constants .Passphrase )
546
547
}
@@ -613,7 +614,8 @@ func getComplianceInfo(vid uint16, pid uint16, softwareVersion uint32,
613
614
}
614
615
615
616
func getComplianceInfoInState (vid uint16 , pid uint16 , softwareVersion uint32 ,
616
- certificationType compliance.CertificationType , state compliance.ComplianceState ) (compliance.ComplianceInfoInState , int ) {
617
+ certificationType compliance.CertificationType ,
618
+ state compliance.ComplianceState ) (compliance.ComplianceInfoInState , int ) {
617
619
uri := fmt .Sprintf ("%s/%v/%v/%v/%v/%v" , compliance .RouterKey , state , vid , pid , softwareVersion , certificationType )
618
620
619
621
response , code := SendGetRequest (uri )
@@ -1131,7 +1133,8 @@ func InitStartData() (KeyInfo, KeyInfo, model.MsgAddModel, model.MsgAddModelVers
1131
1133
fmt .Printf ("%v, %v" , txnResponse , errCode )
1132
1134
1133
1135
// Publish model version
1134
- modelVersion := NewMsgAddModelVersion (model .VID , model .PID , constants .SoftwareVersion , constants .SoftwareVersionString , vendor .Address )
1136
+ modelVersion := NewMsgAddModelVersion (model .VID , model .PID ,
1137
+ constants .SoftwareVersion , constants .SoftwareVersionString , vendor .Address )
1135
1138
txnResponse , errCode = AddModelVersion (modelVersion , vendor )
1136
1139
fmt .Printf ("%v, %v" , txnResponse , errCode )
1137
1140
0 commit comments