tencent cloud

Contract Package Description

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백