-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from moshmage/feat/decode-log
apply decodeLog logic on transaction receipt
- Loading branch information
Showing
8 changed files
with
768 additions
and
540 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import {defaultWeb3Connection, erc20Deployer, expectEvent} from "./index"; | ||
import {Web3Connection} from "../../src"; | ||
import {nativeZeroAddress} from "../../src/utils/constants"; | ||
|
||
describe(`parseReceiptLogs`, () => { | ||
|
||
const deploy_amount = `10000`; | ||
|
||
|
||
let connection: Web3Connection; | ||
|
||
before(async () => { | ||
connection = await defaultWeb3Connection(true, true); | ||
}); | ||
|
||
it(`Deploys ERC20 and expect transfer log event`, async () => { | ||
await expectEvent( | ||
erc20Deployer(`name`, `symbol`, deploy_amount, connection), | ||
`Transfer`, {from: nativeZeroAddress, to: await connection.getAddress(), value: deploy_amount}); | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters