@@ -119,34 +119,30 @@ module.exports = {
119119 '1' : 'bytes8[4]: _b8ret 0x1234000000000000,0x1234000000000000,0x1234000000000000,0x1234000000000000'
120120 } ,
121121 logs : [
122- {
123- 'from' : '0x8c1ed7e19abaa9f23c476da86dc1577f1ef401f5' ,
124- 'topic' : '0xd30981760edbf605bda8689e945f622877f230c9a77cbfbd448aa4b7d8ac6e7f' ,
125- 'event' : 'event1' ,
126- 'args' : {
127- '0' : '-123' ,
128- '1' : '123' ,
129- '2' : {
130- 'hash' : '0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658' ,
131- 'type' : 'Indexed'
132- } ,
133- '3' : '0x12340000' ,
134- '4' : 'test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test ' ,
135- '_i' : '-123' ,
136- '_u' : '123' ,
137- '_str' : {
138- 'hash' : '0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658' ,
139- 'type' : 'Indexed'
140- } ,
141- '_b' : '0x12340000' ,
142- '_notIndexed' : 'test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test ' ,
143- 'length' : 5
144- }
145- }
146- ]
122+ { "from" :"0x8c1ed7e19abaa9f23c476da86dc1577f1ef401f5" ,
123+ "topic" :"0xd30981760edbf605bda8689e945f622877f230c9a77cbfbd448aa4b7d8ac6e7f" ,
124+ "event" :"event1" ,
125+ "args" :{
126+ "0" :"-123" ,
127+ "1" :"123" ,
128+ "2" :{
129+ "_isIndexed" :true ,
130+ "hash" :"0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
131+ } ,
132+ "3" :"0x12340000" ,
133+ "4" :"test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test " }
134+ } ]
147135 } )
148136 . click ( '*[data-id="deployAndRunClearInstances"]' )
149- . end ( )
137+ } ,
138+
139+ 'Should Compile and Deploy a contract which has an event declaring a function as parameter' : function ( browser : NightwatchBrowser ) {
140+ browser . testContracts ( 'eventFunctionInput.sol' , sources [ 3 ] [ 'browser/eventFunctionInput.sol' ] , [ 'C' ] )
141+ . clickLaunchIcon ( 'udapp' )
142+ . selectAccount ( '0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c' ) // this account will be used for this test suite
143+ . click ( '#runTabView button[class^="instanceButton"]' )
144+ . waitForElementPresent ( '.instance:nth-of-type(2)' )
145+ . end ( )
150146 } ,
151147
152148 tearDown : sauce
@@ -207,5 +203,11 @@ const sources = [
207203 _b8ret = _b8;
208204 emit event1(-123, 123, "test", hex"1234", "test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test ");
209205 }
206+ }` } } ,
207+ // https://github.com/ethereum/remix-project/issues/404
208+ { 'browser/eventFunctionInput.sol' : { content : `
209+ pragma solidity >= 0.7.0;
210+ contract C {
211+ event Test(function() external);
210212}` } }
211213]
0 commit comments