@@ -6,7 +6,7 @@ const { ethers } = require("ethers");
6
6
const { soliditySha3 } = require ( "web3-utils" ) ;
7
7
8
8
const { UINT256_MAX , WAD , SECONDS_PER_DAY , ADDRESS_ZERO , ADDRESS_FULL } = require ( "../../helpers/constants" ) ;
9
- const { checkErrorRevert, expectEvent, makeTxAtTimestamp, getBlockTime, forwardTime, web3GetStorageAt } = require ( "../../helpers/test-helper" ) ;
9
+ const { checkErrorRevert, expectEvent, makeTxAtTimestamp, getBlockTime, forwardTime } = require ( "../../helpers/test-helper" ) ;
10
10
const { setupRandomColony, fundColonyWithTokens } = require ( "../../helpers/test-data-generator" ) ;
11
11
12
12
const { expect } = chai ;
@@ -82,17 +82,18 @@ contract("Streaming Payments", (accounts) => {
82
82
( { colony } = await setupRandomColony ( colonyNetwork ) ) ;
83
83
await colony . installExtension ( STREAMING_PAYMENTS , version , { from : USER0 } ) ;
84
84
85
- const streamingPaymentsAddress = await colonyNetwork . getExtensionInstallation ( STREAMING_PAYMENTS , colony . address ) ;
86
- let resolverAddress = await web3GetStorageAt ( streamingPaymentsAddress , 2 ) ;
87
- expect ( resolverAddress ) . to . not . equal ( ethers . constants . HashZero ) ;
85
+ const extensionAddress = await colonyNetwork . getExtensionInstallation ( STREAMING_PAYMENTS , colony . address ) ;
86
+ const etherRouter = await EtherRouter . at ( extensionAddress ) ;
87
+ let resolverAddress = await etherRouter . resolver ( ) ;
88
+ expect ( resolverAddress ) . to . not . equal ( ethers . constants . AddressZero ) ;
88
89
89
90
await checkErrorRevert ( colony . installExtension ( STREAMING_PAYMENTS , version , { from : USER0 } ) , "colony-network-extension-already-installed" ) ;
90
91
await checkErrorRevert ( colony . uninstallExtension ( STREAMING_PAYMENTS , { from : USER1 } ) , "ds-auth-unauthorized" ) ;
91
92
92
93
await colony . uninstallExtension ( STREAMING_PAYMENTS , { from : USER0 } ) ;
93
94
94
- resolverAddress = await web3GetStorageAt ( streamingPaymentsAddress , 2 ) ;
95
- expect ( resolverAddress ) . to . equal ( ethers . constants . HashZero ) ;
95
+ resolverAddress = await etherRouter . resolver ( ) ;
96
+ expect ( resolverAddress ) . to . equal ( ethers . constants . AddressZero ) ;
96
97
} ) ;
97
98
98
99
it ( "can't use the network-level functions if installed via ColonyNetwork" , async ( ) => {
0 commit comments