File tree 2 files changed +6
-5
lines changed
src/internal/hardhat-network/provider
test/internal/hardhat-network/provider/modules/eth
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -650,9 +650,11 @@ export class EdrProviderWrapper
650
650
651
651
private _ethEventListener ( event : SubscriptionEvent ) {
652
652
const subscription = `0x${ event . filterId . toString ( 16 ) } ` ;
653
- const result = event . result ;
654
- this . _emitLegacySubscriptionEvent ( subscription , result ) ;
655
- this . _emitEip1193SubscriptionEvent ( subscription , result ) ;
653
+ const results = Array . isArray ( event . result ) ? event . result : [ event . result ] ;
654
+ for ( const result of results ) {
655
+ this . _emitLegacySubscriptionEvent ( subscription , result ) ;
656
+ this . _emitEip1193SubscriptionEvent ( subscription , result ) ;
657
+ }
656
658
}
657
659
658
660
private _emitLegacySubscriptionEvent ( subscription : string , result : any ) {
Original file line number Diff line number Diff line change @@ -381,8 +381,7 @@ describe("Eth module", function () {
381
381
return onPending ;
382
382
} ) ;
383
383
384
- // TODO: https://github.com/NomicFoundation/edr/issues/279
385
- it . skip ( "contract events work" , async function ( ) {
384
+ it ( "contract events work" , async function ( ) {
386
385
const signer = await provider . getSigner ( ) ;
387
386
const Factory = new ethers . ContractFactory < [ ] , ethers . Contract > (
388
387
EXAMPLE_CONTRACT . abi ,
You can’t perform that action at this time.
0 commit comments