|
|
@ -44,7 +44,6 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu |
|
|
|
st.equals(functions1.length, 1) |
|
|
|
st.equals(functions1.length, 1) |
|
|
|
st.equals(functions2.length, 2) |
|
|
|
st.equals(functions2.length, 2) |
|
|
|
st.equals(functions3.length, 0) |
|
|
|
st.equals(functions3.length, 0) |
|
|
|
|
|
|
|
|
|
|
|
st.equals(Object.keys(functions1[0])[0], 'functionDefinition') |
|
|
|
st.equals(Object.keys(functions1[0])[0], 'functionDefinition') |
|
|
|
st.equals(Object.keys(functions1[0])[1], 'inputs') |
|
|
|
st.equals(Object.keys(functions1[0])[1], 'inputs') |
|
|
|
st.equals(functions1[0].inputs[0], 'foo') |
|
|
|
st.equals(functions1[0].inputs[0], 'foo') |
|
|
@ -55,9 +54,9 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu |
|
|
|
st.equals(functions2[0].inputs[0], 'asd') |
|
|
|
st.equals(functions2[0].inputs[0], 'asd') |
|
|
|
st.equals(functions2[1].inputs[0], 'foo') |
|
|
|
st.equals(functions2[1].inputs[0], 'foo') |
|
|
|
|
|
|
|
|
|
|
|
st.equals(functions1[0].functionDefinition.attributes.name, 'level11') |
|
|
|
st.equals(functions1[0].functionDefinition.name, 'level11') |
|
|
|
st.equals(functions2[0].functionDefinition.attributes.name, 'level12') |
|
|
|
st.equals(functions2[0].functionDefinition.name, 'level12') |
|
|
|
st.equals(functions2[1].functionDefinition.attributes.name, 'level11') |
|
|
|
st.equals(functions2[1].functionDefinition.name, 'level11') |
|
|
|
|
|
|
|
|
|
|
|
st.equals(scopeStarts[0], '') |
|
|
|
st.equals(scopeStarts[0], '') |
|
|
|
st.equals(scopeStarts[13], '1') |
|
|
|
st.equals(scopeStarts[13], '1') |
|
|
@ -66,6 +65,7 @@ module.exports = function (st, vm, privateKey, contractBytecode, compilationResu |
|
|
|
st.equals(scopeStarts[136], '3') |
|
|
|
st.equals(scopeStarts[136], '3') |
|
|
|
st.equals(scopeStarts[153], '4') |
|
|
|
st.equals(scopeStarts[153], '4') |
|
|
|
st.equals(scopeStarts[166], '4.1') |
|
|
|
st.equals(scopeStarts[166], '4.1') |
|
|
|
|
|
|
|
console.log('----------->', scopes['']) |
|
|
|
st.equals(scopes[''].locals['ui8'].type.typeName, 'uint8') |
|
|
|
st.equals(scopes[''].locals['ui8'].type.typeName, 'uint8') |
|
|
|
st.equals(scopes[''].locals['ui16'].type.typeName, 'uint16') |
|
|
|
st.equals(scopes[''].locals['ui16'].type.typeName, 'uint16') |
|
|
|
st.equals(scopes[''].locals['ui32'].type.typeName, 'uint32') |
|
|
|
st.equals(scopes[''].locals['ui32'].type.typeName, 'uint32') |
|
|
|