Commit a998c531 authored by 袁兴强's avatar 袁兴强

delete old contract in cache after updating

parent 8a97d13c
......@@ -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