Skip to content

Commit

Permalink
fix: default actor method
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Sep 13, 2024
1 parent a05365c commit 77db6b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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.

6 changes: 3 additions & 3 deletions drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pub use drink_test_macro::{contract_bundle_provider, test};
pub use errors::Error;
pub use frame_support;
pub use ink_sandbox::{
self, api as sandbox_api, create_sandbox, create_sandbox_with_runtime, pallet_balances,
pallet_contracts, pallet_timestamp, sp_externalities, AccountId32, DispatchError, Sandbox,
Ss58Codec, Weight,
self, api as sandbox_api, create_sandbox, create_sandbox_with_runtime, impl_sandbox,
pallet_balances, pallet_contracts, pallet_timestamp, sp_externalities, AccountId32,
DispatchError, Sandbox, Ss58Codec, Weight,
};
#[cfg(feature = "session")]
pub use session::mock::{mock_message, ContractMock, MessageMock, MockedCallResult, Selector};
Expand Down
6 changes: 3 additions & 3 deletions ink-sandbox/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<

#[macro_export]
macro_rules! impl_sandbox {
($sandbox:ident, $runtime:ident, $block_builder:ident) => {
($sandbox:ident, $runtime:ident, $block_builder:ident, $default_account:ident) => {
impl $crate::Sandbox for $sandbox {
type Runtime = $runtime;

Expand Down Expand Up @@ -104,7 +104,7 @@ macro_rules! impl_sandbox {
}

fn default_actor() -> $crate::AccountIdFor<Self::Runtime> {
DEFAULT_ACCOUNT
$default_account
}

fn get_metadata() -> $crate::RuntimeMetadataPrefixed {
Expand Down Expand Up @@ -144,7 +144,7 @@ macro_rules! create_sandbox {
}
}

$crate::impl_sandbox!($sandbox, $runtime, BlockBuilder);
$crate::impl_sandbox!($sandbox, $runtime, BlockBuilder, DEFAULT_ACCOUNT);
};
}

Expand Down

0 comments on commit 77db6b2

Please sign in to comment.