From 7f9f2d27537474dd494d15cd91c9bd4f8d87aff9 Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Tue, 14 Nov 2023 14:49:46 +0100 Subject: [PATCH] HUM --- runtime/gdev/tests/integration_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/runtime/gdev/tests/integration_tests.rs b/runtime/gdev/tests/integration_tests.rs index 012e6a3b6..8fd57807c 100644 --- a/runtime/gdev/tests/integration_tests.rs +++ b/runtime/gdev/tests/integration_tests.rs @@ -1118,3 +1118,17 @@ fn test_oneshot_accounts() { ); }); } + +/// test balance transfer +#[test] +fn test_simple_transfer() { + ExtBuilder::new(1, 3, 4).build().execute_with(|| { + run_to_block(1); + // Alice transfer money to Dave so that he has an account + assert_ok!(Balances::transfer_allow_death( + frame_system::RawOrigin::Signed(AccountKeyring::Alice.to_account_id()).into(), + AccountKeyring::Dave.to_account_id().into(), + 500 + )); + }) +} -- GitLab