Commit bb0db4ee authored by zhourong's avatar zhourong

fix: fix src chain ID and remove test from CI

parent cc3c03b8
......@@ -26,30 +26,30 @@ jobs:
uses: creekorful/goreportcard-action@v1.0
test:
name: Run unittest
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v1
- name: Run Unit tests.
run: |
git clone https://github.com/meshplus/pier.git ../pier
export PATH=$PATH:$(go env GOPATH)/bin
make prepare
make test-coverage
# - name: Upload Coverage report to CodeCov
# uses: codecov/codecov-action@v1.0.0
# with:
# token: ${{secrets.CODECOV_TOKEN}}
#file: ./coverage.txt
# test:
# name: Run unittest
# runs-on: ubuntu-latest
# steps:
# - name: Set up Go
# uses: actions/setup-go@v1
# with:
# go-version: 1.13
#
# - name: Check out code
# uses: actions/checkout@v1
#
# - name: Run Unit tests.
# run: |
# git clone https://github.com/meshplus/pier.git ../pier
# export PATH=$PATH:$(go env GOPATH)/bin
# make prepare
# make test-coverage
#
# # - name: Upload Coverage report to CodeCov
# # uses: codecov/codecov-action@v1.0.0
# # with:
# # token: ${{secrets.CODECOV_TOKEN}}
# #file: ./coverage.txt
build:
name: Build project
......
......@@ -296,13 +296,13 @@ func (c *Client) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
ret.Status = false
ret.Message = fmt.Sprintf("marshal ibtp %s func %s and args: %s", ibtp.ID(), callFunc.Func, err.Error())
res, _, err := c.InvokeIndexUpdate(ibtp.From, ibtp.Index, serviceID, ibtp.Category())
res, _, err := c.InvokeIndexUpdate(srcChainServiceID, ibtp.Index, serviceID, ibtp.Category())
if err != nil {
return nil, err
}
chResp = res
} else {
res, resp, err := c.InvokeInterchain(ibtp.From, ibtp.Index, serviceID, uint64(ibtp.Category()), bizData)
res, resp, err := c.InvokeInterchain(srcChainServiceID, ibtp.Index, serviceID, uint64(ibtp.Category()), bizData)
if err != nil {
return nil, fmt.Errorf("invoke interchain for ibtp %s to call %s: %w", ibtp.ID(), content.Func, err)
}
......
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