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
8337eb8b8b
fixes failing test cases
...
for unknown reason using "ws://localhost:8545/" is rejected.
but "ws://127.0.0.1:8545/" is ok.
2021-05-19 11:19:51 +07:00
Zahary Karadjov
0361338cea
Correct nonce values when sending multiple transactions
2020-08-01 19:41:39 +03:00
jangko
4097cfaf95
fix tests
2020-07-15 15:41:22 +07:00
jangko
b29311a9d0
silence spurious warnings
2020-07-15 10:14:28 +07:00
jangko
fd8b5de13c
fix test_signed_tx
2020-07-15 10:06:11 +07:00
Zahary Karadjov
71524f0f59
Fix nimble test
2020-06-30 15:59:21 +03:00
Jacek Sieka
73896c2226
fix
2020-06-22 17:09:35 +02:00
Viktor Kirilov
f1d3e94dda
event handlers should't be permitted to raise anything other than a Defect
2020-05-08 17:20:59 +03:00
Zahary Karadjov
270fd64620
Add convenience API for obtaining logs from a smart contract event
2020-04-18 17:24:59 +03:00
Zahary Karadjov
6927cd08a2
Allow specifying a block number when making smart contract calls
...
Other changes:
* More accurate RPC signatures
* Handle empty responses from the Web3 provider in `eth_call`
2020-04-18 17:24:59 +03:00
Jacek Sieka
969adf2f1e
keys: fix deprecations
2020-04-04 18:51:27 +02:00
Yuriy Glukhov
37fc461114
Fixed serialization compatibility with geth. Added getMinedTransactionReceipt
2019-10-30 15:05:44 +02:00
Yuriy Glukhov
ecd2fb45a6
Added close function
2019-10-23 09:35:54 +09:00
Yuriy Glukhov
817c819847
Fixed fixed encoding, inputs/outputs parsing
2019-09-06 09:24:37 -04:00
Yuriy Glukhov
6ca87380a6
Fixes #5 , implemented tx signing
2019-08-06 11:02:38 +03:00
Yuriy Glukhov
cd0e216aaf
Ergonomics changes
2019-07-31 13:13:26 +03:00
Yuriy Glukhov
cf6dc7699f
More fixes, fetch historical logs on subsciption, more tests
2019-07-22 12:09:09 +03:00
Yuriy Glukhov
1d6d413318
Fixed dynamic encoding, added deposit contract test
2019-07-22 12:09:09 +03:00
Yuriy Glukhov
1d58c88989
Event subscriptions
2019-07-22 12:09:09 +03:00
Yuriy Glukhov
4363d66838
Some fixes. Package structure updated.
2019-06-10 15:02:43 +03:00
PMunch
eb14b4b706
Initial commit
2018-12-21 18:27:09 +01:00