Commit Graph

7 Commits

Author SHA1 Message Date
Mark Spanbroek 47a02504dd Fix decoding of dynamic bytes 2021-12-14 08:21:39 +01:00
Zahary Karadjov 74ae794993 More complete DynamicBytes implementation 2021-10-14 14:17:20 +03:00
Zahary Karadjov 9a23474afb Add definitions related to the new execution engine APIs 2021-09-29 22:25:09 +03:00
Eric Mastro d62f8105a1
fix: allow Bool input/output types for contracts (#39)
* fix: allow Bool input/output types for contracts

Contracts created with the `contract` macro and having a method with a `Bool` input/output type were failing to compile. Example:
```
contract(MyContract):
  proc enableTransfers(
    transfersEnabled: Bool
  )
```
Failed with:
```
Error: type mismatch: got <type Bool>
but expected one of:
proc unknownType()
  first type mismatch at position: 1
  extra argument given

expression: unknownType(Bool)
```
This fix enables translating `Bool` type signatures to solidity’s `bool` type.

* add Bool encoding/decoding test
2021-09-21 12:02:06 +02:00
jangko 2ac463ce9d
fixes wrong import 2020-09-21 13:26:59 +07:00
Zahary Karadjov fc0c27a730
Fix the CI failure 2020-08-10 23:08:44 +03:00
emizzle 3900d91958
refactor: move encoding/decoding functions to sub-lib
Move all encoding/decoding functions to a separate sub-library, to allow libraries to use these functions without needing to import the entire library (ie hopefully without needing to import secp256k1).
2020-08-10 19:43:42 +10:00