File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/test/java/blockchains/iaas/uni/stuttgart/de/plugin/ethereum Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1313
1414import org .junit .jupiter .api .Assertions ;
1515import org .junit .jupiter .api .Test ;
16- import org .web3j .abi .datatypes .Address ;
17- import org .web3j .abi .datatypes .DynamicBytes ;
18- import org .web3j .abi .datatypes .Type ;
19- import org .web3j .abi .datatypes .Utf8String ;
20- import org .web3j .abi .datatypes .generated .Bytes8 ;
21- import org .web3j .abi .datatypes .generated .Int160 ;
22- import org .web3j .abi .datatypes .generated .Uint160 ;
16+ import org .web3j .abi .datatypes .*;
17+ import org .web3j .abi .datatypes .generated .*;
2318
2419class EthereumTypeMapperTest {
2520 @ Test
@@ -72,6 +67,14 @@ void testTypes(){
7267 "}" ;
7368 result = EthereumTypeMapper .getEthereumType (bytes );
7469 Assertions .assertEquals (DynamicBytes .class , result );
70+
71+ final String uint256Type = "{\n " +
72+ "\t \" type\" : \" integer\" ,\n " +
73+ " \t \" minimum\" : 0,\n " +
74+ " \t \" maximum\" : 115792089237316195423570985008687907853269984665640564039457584007913129639935\n " +
75+ "}" ;
76+ result = EthereumTypeMapper .getEthereumType (uint256Type );
77+ Assertions .assertEquals (Uint256 .class , result );
7578 }
7679
7780}
You can’t perform that action at this time.
0 commit comments