新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 2c6f8c1e authored by anadanxu's avatar anadanxu

feat: fix issues --story=0

parent 64e1fa48
......@@ -13,11 +13,9 @@ import (
"errors"
"fmt"
"strconv"
"strings"
"chainmaker.org/chainmaker/pb-go/v2/config"
commonPb "chainmaker.org/chainmaker/pb-go/v2/common"
"chainmaker.org/chainmaker/pb-go/v2/config"
"chainmaker.org/chainmaker/pb-go/v2/syscontract"
"chainmaker.org/chainmaker/protocol/v2"
"chainmaker.org/chainmaker/utils/v2"
......@@ -293,6 +291,10 @@ func (r *MultiSignRuntime) Trig(
// updateMultiSignContract updates multi sign contract status in the context
func (r *MultiSignRuntime) updateUserContract(txSimContext protocol.TxSimContext,
multiSignInfo *syscontract.MultiSignInfo) error {
// if the invoking tx is just the request tx, we don't need to update anything
if multiSignInfo.GetPayload().GetTxId() == txSimContext.GetTx().GetPayload().GetTxId() {
return nil
}
manageContractName := syscontract.SystemContract_CONTRACT_MANAGE.String()
if multiSignInfo.GetContractName() != manageContractName {
return nil
......@@ -333,7 +335,7 @@ func (r *MultiSignRuntime) updateUserContract(txSimContext protocol.TxSimContext
// set install information or upgrade information for the contract
block, err := txSimContext.GetSnapshot().GetBlockchainStore().GetBlockByTx(multiSignInfo.GetPayload().GetTxId())
if err != nil && !strings.Contains(err.Error(), "value not found") {
if err != nil {
return fmt.Errorf("get block by tx id failed, error: %+v", err)
}
if multiSignInfo.Method == syscontract.ContractManageFunction_INIT_CONTRACT.String() {
......
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