Skip to content

Commit

Permalink
[ctr/lua] bugfix for event stream when name service using
Browse files Browse the repository at this point in the history
  • Loading branch information
eve2adam committed May 2, 2019
1 parent 84a8c92 commit 620ccac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ func (ev *Event) MarshalJSON() ([]byte, error) {
}

func (ev *Event) SetMemoryInfo(receipt *Receipt, blkHash []byte, blkNo BlockNo, txIdx int32) {
ev.ContractAddress = AddressOrigin(ev.ContractAddress)
ev.TxHash = receipt.TxHash
ev.TxIndex = txIdx
ev.BlockHash = blkHash
Expand Down Expand Up @@ -613,6 +612,7 @@ func (ev *Event) Filter(filter *FilterInfo, argFilter []ArgFilter) bool {
}
}
}
ev.ContractAddress = AddressOrigin(ev.ContractAddress)
return true
}

Expand Down Expand Up @@ -677,7 +677,7 @@ func (fi *FilterInfo) GetExArgFilter() ([]ArgFilter, error) {
for key, value := range argMap {
idx, err := strconv.ParseInt(key, 10, 32)
if err != nil || idx < 0 {
return nil, errors.New("invalid argument number:" + err.Error())
return nil, errors.New("invalid argument number:" + key)
}
argFilter[i].argNo = int(idx)
argFilter[i].value = value
Expand Down

0 comments on commit 620ccac

Please sign in to comment.