@@ -10,6 +10,21 @@ tape('ABI translator', function (t) {
10
10
st . deepEqual ( abi . update ( '0.1.1' , [ ] ) , [ { inputs : [ ] , payable : true , type : 'constructor' } , { payable : true , type : 'fallback' } ] ) ;
11
11
st . end ( ) ;
12
12
} ) ;
13
+ t . test ( '0.3.6 (constructor)' , function ( st ) {
14
+ var input = [ { inputs : [ ] , type : 'constructor' } ] ;
15
+ st . deepEqual ( abi . update ( '0.3.6' , input ) , [ { inputs : [ ] , payable : true , type : 'constructor' } , { payable : true , type : 'fallback' } ] ) ;
16
+ st . end ( ) ;
17
+ } ) ;
18
+ t . test ( '0.3.6 (function)' , function ( st ) {
19
+ var input = [ { inputs : [ ] , type : 'function' } ] ;
20
+ st . deepEqual ( abi . update ( '0.3.6' , input ) , [ { inputs : [ ] , payable : true , type : 'function' } , { payable : true , type : 'fallback' } ] ) ;
21
+ st . end ( ) ;
22
+ } ) ;
23
+ t . test ( '0.3.6 (event)' , function ( st ) {
24
+ var input = [ { inputs : [ ] , type : 'event' } ] ;
25
+ st . deepEqual ( abi . update ( '0.3.6' , input ) , [ { inputs : [ ] , type : 'event' } , { payable : true , type : 'fallback' } ] ) ;
26
+ st . end ( ) ;
27
+ } ) ;
13
28
t . test ( '0.4.0 (has fallback)' , function ( st ) {
14
29
var input = [ { inputs : [ ] , type : 'constructor' } ] ;
15
30
st . deepEqual ( abi . update ( '0.4.0' , input ) , [ { inputs : [ ] , payable : true , type : 'constructor' } ] ) ;
0 commit comments