tencent cloud

Contract Package Description

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2025-04-10 00:41:07
Please see fabric-contract-go for a golang contract sample package.

Go Language Contract Packaging Step

1. Write a Go language contract file.
2. Initialize go.mod and run command go mod init fabric-contract-go-demo.
3. Add fabric-contract-api-go dependency in the go.mod file. An example is as follows:
module fabric-contract-go-demo require github.com/hyperledger/fabric-contract-api-go v1.1.0 go 1.14
4. Execute command go mod vendor to download contract dependencies to the vendor directory.
5. Run the command zip -r xxx.zip * in the contract root directory to pack the contract.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan