Unverified Commit 1416f82c authored by 33cn's avatar 33cn Committed by GitHub

Merge pull request #989 from yann-sjtu/wasm_contract_update_support

wasm合约更新后删除旧合约的缓存
parents c62df166 469bab9b
......@@ -106,6 +106,9 @@ func (w *Wasm) Exec_Update(payload *types2.WasmUpdate, tx *types.Transaction, in
kvc.AddNoPrefix(contractKey(name), code)
// 删除旧合约缓存
delete(w.VMCache, name)
receiptLog := &types.ReceiptLog{
Ty: types2.TyLogWasmUpdate,
Log: types.Encode(&types2.UpdateContractLog{
......
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