Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
1416f82c
Unverified
Commit
1416f82c
authored
Apr 07, 2021
by
33cn
Committed by
GitHub
Apr 07, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #989 from yann-sjtu/wasm_contract_update_support
wasm合约更新后删除旧合约的缓存
parents
c62df166
469bab9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
exec.go
plugin/dapp/wasm/executor/exec.go
+3
-0
No files found.
plugin/dapp/wasm/executor/exec.go
View file @
1416f82c
...
@@ -106,6 +106,9 @@ func (w *Wasm) Exec_Update(payload *types2.WasmUpdate, tx *types.Transaction, in
...
@@ -106,6 +106,9 @@ func (w *Wasm) Exec_Update(payload *types2.WasmUpdate, tx *types.Transaction, in
kvc
.
AddNoPrefix
(
contractKey
(
name
),
code
)
kvc
.
AddNoPrefix
(
contractKey
(
name
),
code
)
// 删除旧合约缓存
delete
(
w
.
VMCache
,
name
)
receiptLog
:=
&
types
.
ReceiptLog
{
receiptLog
:=
&
types
.
ReceiptLog
{
Ty
:
types2
.
TyLogWasmUpdate
,
Ty
:
types2
.
TyLogWasmUpdate
,
Log
:
types
.
Encode
(
&
types2
.
UpdateContractLog
{
Log
:
types
.
Encode
(
&
types2
.
UpdateContractLog
{
...
...
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