Skip to content

Commit

Permalink
Fix & docs update.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunxw committed Oct 12, 2023
1 parent f2eca13 commit e55f316
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chain-extensions/xvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where
// things on behalf of the caller via XVM.
let source = env.ext().address().clone();

// Claim a default account if needed.
// Claim the default evm address if needed.
let mut actual_weight = Weight::zero();
if value > 0 && UA::to_h160(&source).is_none() {
let weight_of_claim = <T as pallet_unified_accounts::Config>::WeightInfo::claim_default_evm_address();
Expand Down
4 changes: 2 additions & 2 deletions runtime/local/src/chain_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with Astar. If not, see <http://www.gnu.org/licenses/>.

use super::{Runtime, Xvm};
use super::{Runtime, UnifiedAccounts, Xvm};

/// Registered WASM contracts chain extensions.
pub use pallet_chain_extension_assets::AssetsExtension;
Expand All @@ -31,7 +31,7 @@ impl RegisteredChainExtension<Runtime> for DappsStakingExtension<Runtime> {
const ID: u16 = 00;
}

impl RegisteredChainExtension<Runtime> for XvmExtension<Runtime, Xvm> {
impl RegisteredChainExtension<Runtime> for XvmExtension<Runtime, Xvm, UnifiedAccounts> {
const ID: u16 = 01;
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ impl pallet_contracts::Config for Runtime {
type WeightInfo = pallet_contracts::weights::SubstrateWeight<Self>;
type ChainExtension = (
DappsStakingExtension<Self>,
XvmExtension<Self, Xvm>,
XvmExtension<Self, Xvm, UnifiedAccounts>,
AssetsExtension<Self, pallet_chain_extension_assets::weights::SubstrateWeight<Self>>,
);
type Schedule = Schedule;
Expand Down

0 comments on commit e55f316

Please sign in to comment.