Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
19315872692
vm-native
Commits
2c6f8c1e
Commit
2c6f8c1e
authored
Apr 30, 2025
by
anadanxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: fix issues --story=0
parent
64e1fa48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
multisign/multi_sign_contract.go
multisign/multi_sign_contract.go
+6
-4
No files found.
multisign/multi_sign_contract.go
View file @
2c6f8c1e
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment