Skip to content

Commit

Permalink
Merge pull request #839 from primitivefinance/refactor/state-machine
Browse files Browse the repository at this point in the history
refactor(arbiter-engine): streamline `StateMachine`, `Behavior`, `World::run()`
  • Loading branch information
kinrezC authored Feb 2, 2024
2 parents 529d948 + ba9c0ed commit e740f0c
Show file tree
Hide file tree
Showing 19 changed files with 581 additions and 1,025 deletions.
135 changes: 63 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion arbiter-core/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ mod tests {
assert_eq!(account_a.info.nonce, 1234);
assert_eq!(account_a.info.balance, U256::from(0xfacade));
assert_eq!(account_a.info.code, None);
assert_eq!(account_a.info.code_hash, keccak256(&[]));
assert_eq!(account_a.info.code_hash, keccak256([]));

let account_b = db
.load_account(address!("0000000000000000000000000000000000000001"))
Expand Down
1 change: 1 addition & 0 deletions arbiter-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ futures = "0.3.30"
crossbeam-channel.workspace = true
arbiter-core.workspace = true
arbiter-bindings.workspace = true
thiserror.workspace = true

[dev-dependencies]
arbiter-core.workspace = true
Expand Down
Loading

0 comments on commit e740f0c

Please sign in to comment.