AccessList in JSONRPC. And enabling github action tests (#255)

* Enabling github action tests
* Fix failing tests
* AccessList to Option in json
* failing rust example removed
* AccessList for jsonrpc
* Tx type as sequence, AccessList as type
This commit is contained in:
rakita
2021-02-08 14:55:03 +01:00
committed by GitHub
parent f40e198eb7
commit 6b4e56b214
22 changed files with 144 additions and 81 deletions

View File

@@ -35,13 +35,15 @@ pub struct Transaction {
pub v: Uint,
pub value: Uint,
pub chain_id: Option<Uint>,
pub access_list: Option<Vec<AccessList>>,
pub access_list: Option<AccessList>,
pub hash: Option<H256>,
}
pub type AccessList = Vec<AccessListItem>;
#[derive(Debug, PartialEq, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AccessList {
pub struct AccessListItem {
pub address: H160,
pub storage_keys: Vec<H256>,
}