Commit 150b47e9 authored by harrylee's avatar harrylee

update go mod

parent fa18a682
......@@ -359,7 +359,7 @@ func (c *Client) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
return ret, nil
}
//跨链方法调用
func (c *Client) InvokeInterchain(from string, index uint64, destAddr string, reqType uint64, bizCallData []byte) (*channel.Response, *Response, error) {
args := util.ToChaincodeArgs(from, strconv.FormatUint(index, 10), destAddr, strconv.FormatUint(reqType, 10))
args = append(args, bizCallData)
......
......@@ -435,6 +435,7 @@ func (broker *Broker) invokeInterchain(stub shim.ChaincodeStubInterface, args []
var ccArgs [][]byte
ccArgs = append(ccArgs, []byte(callFunc.Func))
ccArgs = append(ccArgs, callFunc.Args...)
//chaincode Name, 方法参数, 所属通道
response := stub.InvokeChaincode(splitedCID[1], ccArgs, splitedCID[0])
if response.Status != shim.OK {
return errorResponse(fmt.Sprintf("invoke chaincode '%s' function %s err: %s", splitedCID[1], callFunc.Func, response.Message))
......
module github.com/meshplus/broker
module gitlab.33cn/link33/sidecar-client-fabric/example/contracts/src/broker
go 1.13
......
module github.com/meshplus/data_swapper
module gitlab.33cn/link33/sidecar-client-fabric/example/contracts/src/data_swapper
go 1.13
......
This diff is collapsed.
module github.com/meshplus/transfer
module gitlab.33cn/link33/sidecar-client-fabric/example/contracts/src/transfer
go 1.13
......
This diff is collapsed.
......@@ -16,7 +16,7 @@ require (
github.com/hyperledger/fabric-protos-go v0.0.0-20201028172056-a3136dde2354
github.com/hyperledger/fabric-sdk-go v1.0.0-alpha5
github.com/spf13/viper v1.7.0
gitlab.33.cn/link33/sidecar v0.0.0-20211028080238-67f4248825bb
gitlab.33.cn/link33/sidecar v0.0.0-20211105031147-f9e9df1e4f1f
)
replace (
......
......@@ -344,6 +344,7 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/herumi/bls-eth-go-binary v0.0.0-20210917013441-d37c07cfda4e/go.mod h1:luAnRm3OsMQeokhGzpYmc0ZKwawY7o87PUEP11Z7r7U=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c=
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
......@@ -894,6 +895,7 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/supranational/blst v0.3.6/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
github.com/sykesm/zap-logfmt v0.0.3 h1:3Wrhf7+I9JEUD8B6KPtDAr9j2jrS0/EPLy7GCE1t/+U=
github.com/sykesm/zap-logfmt v0.0.3/go.mod h1:AuBd9xQjAe3URrWT1BBDk2v2onAZHkZkWRMiYZXiZWA=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
......@@ -957,8 +959,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1z
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
gitlab.33.cn/link33/sidecar v0.0.0-20211028080238-67f4248825bb h1:L1SK4l+DMV2WhKkifYr3cW9hxHU/bDQ/XAO7SZ1S94U=
gitlab.33.cn/link33/sidecar v0.0.0-20211028080238-67f4248825bb/go.mod h1:s/qrfybcmaH6VguLhze6/iyNE7pCJKVKndLaN37vqOs=
gitlab.33.cn/link33/sidecar v0.0.0-20211105031147-f9e9df1e4f1f h1:REbyqCuWDxubdcqW41o1gt+6vj7WTnr3rOwSEm0NICw=
gitlab.33.cn/link33/sidecar v0.0.0-20211105031147-f9e9df1e4f1f/go.mod h1:bq/K3Ga8m1sdRJjSbd43P7dhCiwj+eO358vvu55Cpu4=
go.etcd.io/bbolt v1.3.2 h1:Z/90sZLPOeCy2PwprqkFa25PdkusRzaj9P8zm/KNyvk=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/etcd v3.3.13+incompatible h1:jCejD5EMnlGxFvcGRyEV4VGlENZc7oPQX6o0t7n3xbw=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment