Skip to content

Commit

Permalink
feat: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AbigailDeng authored and AbigailDeng committed May 8, 2024
1 parent f3a2a76 commit 19894c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| Statements | Branches | Functions | Lines |
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
| ![Statements](https://img.shields.io/badge/statements-96.27%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-93.45%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-96.68%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-96.43%25-brightgreen.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-96.27%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-93.65%25-brightgreen.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-96.68%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-96.43%25-brightgreen.svg?style=flat) |


## 1. Introduction
Expand Down
2 changes: 1 addition & 1 deletion src/contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Contract {
}

deserializeLog(logs = [], logName) {
let logInThisAddress = (logs || []).filter(v => v.Address === this.address && logName === v.Name);
let logInThisAddress = (logs).filter(v => v.Address === this.address && logName === v.Name);
if (logInThisAddress.length === 0) {
return [];
}
Expand Down

0 comments on commit 19894c5

Please sign in to comment.