This repository was archived by the owner on Dec 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/integration/dataunion Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -190,13 +190,14 @@ describe('DataUnion withdraw', () => {
190190 // emulate the bridge-sponsored withdrawals
191191 beforeAll ( ( ) => {
192192 if ( ! payForTransport && waitUntilTransportIsComplete ) {
193- const sidechainAmbAddress = '0xaFA0dc5Ad21796C9106a36D68f69aAD69994BB64'
193+ // event UserRequestForSignature(bytes32 indexed messageId, bytes encodedData)
194194 const signatureRequestEventSignature = '0x520d2afde79cbd5db58755ac9480f81bc658e5c517fcae7365a3d832590b0183'
195+ const sidechainAmbAddress = '0xaFA0dc5Ad21796C9106a36D68f69aAD69994BB64'
195196 providerSidechain . on ( {
196197 address : sidechainAmbAddress ,
197198 topics : [ signatureRequestEventSignature ]
198- } , async ( e ) => {
199- const message = defaultAbiCoder . decode ( [ 'bytes' ] , e . data ) [ 0 ]
199+ } , async ( event ) => {
200+ const message = defaultAbiCoder . decode ( [ 'bytes' ] , event . data ) [ 0 ] // messageId is indexed so it's in topics, only encodedData is in data
200201 const hash = keccak256 ( message )
201202 const adminClient = new StreamrClient ( config . clientOptions )
202203 await adminClient . getDataUnion ( '0x0000000000000000000000000000000000000000' ) . transportMessage ( hash )
You can’t perform that action at this time.
0 commit comments