Skip to content

Commit

Permalink
chore: rollback curve25519-dalek
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Feb 23, 2024
1 parent ebe6dd7 commit 9060d64
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

54 changes: 27 additions & 27 deletions engine-standalone-storage/src/sync/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,33 +345,33 @@ impl TransactionKind {
access_list: Vec::new(),
}
},
|erc20_address| {
// ERC-20 refund
let from = Self::get_implicit_address(engine_account);
let nonce = Self::get_implicit_nonce(
&from,
block_height,
transaction_position,
storage,
);
let to = erc20_address;
let data = aurora_engine::engine::setup_refund_on_error_input(
U256::from_big_endian(&args.amount),
args.recipient_address,
);
NormalizedEthTransaction {
address: from,
chain_id: None,
nonce,
gas_limit: U256::from(u64::MAX),
max_priority_fee_per_gas: U256::zero(),
max_fee_per_gas: U256::zero(),
to: Some(to),
value: Wei::zero(),
data,
access_list: Vec::new(),
}
},
|erc20_address| {
// ERC-20 refund
let from = Self::get_implicit_address(engine_account);
let nonce = Self::get_implicit_nonce(
&from,
block_height,
transaction_position,
storage,
);
let to = erc20_address;
let data = aurora_engine::engine::setup_refund_on_error_input(
U256::from_big_endian(&args.amount),
args.recipient_address,
);
NormalizedEthTransaction {
address: from,
chain_id: None,
nonce,
gas_limit: U256::from(u64::MAX),
max_priority_fee_per_gas: U256::zero(),
max_fee_per_gas: U256::zero(),
to: Some(to),
value: Wei::zero(),
data,
access_list: Vec::new(),
}
},
)
},
)
Expand Down
2 changes: 1 addition & 1 deletion engine/src/contract_methods/connector/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub fn set_eth_connector_account_id<I: IO + Copy, E: Env>(

pub fn get_eth_connector_account_id<I: IO + Copy>(mut io: I) -> Result<(), ContractError> {
let account = EthConnectorContract::init(io)?.get_eth_connector_contract_account();
let data = borsh::to_vec(&account).expect(errors::ERR_FAILED_PARSE);
let data = borsh::to_vec(&account).unwrap();
io.return_output(&data);

Ok(())
Expand Down

0 comments on commit 9060d64

Please sign in to comment.