File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
main/java/com/openelements/hiero/smartcontract/abi/model
test/java/com/openelements/hiero/smartcontract/abi/test Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,15 @@ public boolean isDynamic() {
3939 default -> false ;
4040 };
4141 }
42+
43+ public int getFixedSize () {
44+ return switch (this ) {
45+ case ADDRESS -> 20 ;
46+ case BOOL -> 1 ;
47+ case UINT256 -> 32 ;
48+ case UINT -> 32 ;
49+ case BYTE32 -> 32 ;
50+ default -> throw new IllegalStateException ("No fixed size for type: " + this );
51+ };
52+ }
4253}
Original file line number Diff line number Diff line change 33import com .openelements .hiero .smartcontract .abi .model .AbiEvent ;
44import com .openelements .hiero .smartcontract .abi .model .AbiParameter ;
55import com .openelements .hiero .smartcontract .abi .model .AbiParameterType ;
6- import com .openelements .hiero .smartcontract .abi .util .HexConverter ;
7- import java .nio .charset .StandardCharsets ;
8- import java .util .Base64 ;
96import java .util .List ;
10- import org .bouncycastle .jcajce .provider .digest .Keccak ;
117import org .junit .jupiter .api .Assertions ;
128import org .junit .jupiter .api .Test ;
139
Original file line number Diff line number Diff line change 193193 <artifactId >gson</artifactId >
194194 <version >${gson.version} </version >
195195 </dependency >
196- <dependency >
197- <groupId >com.github.aelstad</groupId >
198- <artifactId >keccakj</artifactId >
199- <version >${keccakj.version} </version >
200- </dependency >
201196 <dependency >
202197 <groupId >org.bouncycastle</groupId >
203198 <artifactId >bcprov-jdk15to18</artifactId >
You can’t perform that action at this time.
0 commit comments