Skip to content

Commit

Permalink
Merge branch 'develop' into issue/decoding-negative-int
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthMike authored Feb 12, 2022
2 parents 4b3838f + c5bd9c1 commit 7afc5cf
Show file tree
Hide file tree
Showing 18 changed files with 2,012 additions and 469 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ client.eth_gasPrice { (error, currentPrice) in
print("The current gas price is \(currentPrice)")
}
```
If using `async/await` you can `await` on the result
```swift
let gasPrice = try await client.eth_gasPrice()
```

### Smart contracts: Static types

Expand Down Expand Up @@ -99,6 +103,10 @@ client.eth_sendRawTransaction(transacton, withAccount: account) { (error, txHash
print("TX Hash: \(txHash)")
}
```
If using `async/await` you can `await` on the result
```swift
let txHash = try await client.eth_sendRawTransaction(transacton, withAccount: account)
```

### Data types

Expand Down Expand Up @@ -162,7 +170,6 @@ There are some features that have yet to be fully implemented! Not every RPC met
- Batch support for JSONRPC interface
- Use a Hex struct for values to be more explicit in expected types
- Use [Truffle](https://github.com/trufflesuite/ganache-cli) for running tests
- Add support for Swift Package Manager
- Bloom Filter support

## Contributors
Expand Down
Loading

0 comments on commit 7afc5cf

Please sign in to comment.