mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-20 00:25:09 +00:00
fix typo in asset-transfer-basic (#744)
Signed-off-by: Tommy TIAN <xtianae@connect.ust.hk>
This commit is contained in:
parent
67a1166396
commit
9d04fc9a2e
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ func main() {
|
||||||
|
|
||||||
err := os.Setenv("DISCOVERY_AS_LOCALHOST", "true")
|
err := os.Setenv("DISCOVERY_AS_LOCALHOST", "true")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error setting DISCOVERY_AS_LOCALHOST environemnt variable: %v", err)
|
log.Fatalf("Error setting DISCOVERY_AS_LOCALHOST environment variable: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
wallet, err := gateway.NewFileSystemWallet("wallet")
|
wallet, err := gateway.NewFileSystemWallet("wallet")
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ type SmartContract struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Asset describes basic details of what makes up a simple asset
|
// Asset describes basic details of what makes up a simple asset
|
||||||
//Insert struct field in alphabetic order => to achieve determinism accross languages
|
//Insert struct field in alphabetic order => to achieve determinism across languages
|
||||||
// golang keeps the order when marshal to json but doesn't order automatically
|
// golang keeps the order when marshal to json but doesn't order automatically
|
||||||
type Asset struct {
|
type Asset struct {
|
||||||
AppraisedValue int `json:"AppraisedValue"`
|
AppraisedValue int `json:"AppraisedValue"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue