difftreelog
misk: Change bound. Update changelog
in: master
3 files changed
pallets/common/src/eth.rsdiffbeforeafterboth--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -53,9 +53,9 @@
}
/// Convert `CrossAccountId` to `uint256`.
-pub fn convert_cross_account_to_eth_uint256<T: Config>(from: &T::CrossAccountId) -> Result<uint256>
+pub fn convert_cross_account_to_uint256<T: Config>(from: &T::CrossAccountId) -> uint256
where
- T::AccountId: AsRef<[u8]>,
+ T::AccountId: AsRef<[u8; 32]>,
{
use pallet_evm::account::CrossAccountId;
let slice = from.as_sub().as_ref();
pallets/evm-contract-helpers/CHANGELOG.mddiffbeforeafterboth1# Change Log23All notable changes to this project will be documented in this file.45## [v0.2.0] - 2022-08-1967### Added89 - Set arbitrary evm address as contract sponsor.10 - Ability to remove current sponsor.1112 ### Changed1314 - Change `toggle_sponsoring` to `self_sponsored_enable`.151617## [v0.1.2] 2022-08-161819### Other changes2021- build: Upgrade polkadot to v0.9.27 2c498572636f2b34d53b1c51b7283a761a7dc90a2223- build: Upgrade polkadot to v0.9.26 85515e54c4ca1b82a2630034e55dcc804c643bf82425- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6b1# Change Log23All notable changes to this project will be documented in this file.45## [v0.2.0] - 2022-08-1967### Added89 - Set arbitrary evm address as contract sponsor.10 - Ability to remove current sponsor.1112### Removed13 - Remove methods14 + sponsoring_enabled15 + toggle_sponsoring1617 ### Changed1819 - Change `toggle_sponsoring` to `self_sponsored_enable`.202122## [v0.1.2] 2022-08-162324### Other changes2526- build: Upgrade polkadot to v0.9.27 2c498572636f2b34d53b1c51b7283a761a7dc90a2728- build: Upgrade polkadot to v0.9.26 85515e54c4ca1b82a2630034e55dcc804c643bf82930- build: Upgrade polkadot to v0.9.25 cdfb9bdc7b205ff1b5134f034ef9973d769e5e6bpallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/eth.rs
+++ b/pallets/evm-contract-helpers/src/eth.rs
@@ -45,7 +45,7 @@
#[solidity_interface(name = "ContractHelpers")]
impl<T: Config> ContractHelpers<T>
where
- T::AccountId: AsRef<[u8]>,
+ T::AccountId: AsRef<[u8; 32]>,
{
/// Get contract ovner
///
@@ -110,7 +110,7 @@
fn get_sponsor(&self, contract_address: address) -> Result<(address, uint256)> {
let sponsor =
Pallet::<T>::get_sponsor(contract_address).ok_or("Contract has no sponsor")?;
- let sponsor_sub = pallet_common::eth::convert_cross_account_to_eth_uint256::<T>(&sponsor)?;
+ let sponsor_sub = pallet_common::eth::convert_cross_account_to_uint256::<T>(&sponsor);
Ok((*sponsor.as_eth(), sponsor_sub))
}
@@ -206,7 +206,7 @@
pub struct HelpersOnMethodCall<T: Config>(PhantomData<*const T>);
impl<T: Config> OnMethodCall<T> for HelpersOnMethodCall<T>
where
- T::AccountId: AsRef<[u8]>,
+ T::AccountId: AsRef<[u8; 32]>,
{
fn is_reserved(contract: &sp_core::H160) -> bool {
contract == &T::ContractAddress::get()