Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Enddy Dumbrique committed May 23, 2024
1 parent bb5152f commit 669d90b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
3 changes: 2 additions & 1 deletion e2e/package-lock.json

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

7 changes: 4 additions & 3 deletions e2e/proxy-pallet/proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ describe('Proxy', function () {
});

it('Sends a transfer', async function () {
console.log("ExtrinsicHelper.api.tx.balances.transferAllowDeath", ExtrinsicHelper.api.tx.balances.transfer_allow_death);
const extrinsic = new Extrinsic(
() =>
ExtrinsicHelper.api.tx.proxy.proxy(
stashKeys.address,
'Any',
ExtrinsicHelper.api.tx.balances.transfer(proxyKeys.address, 1n * DOLLARS)
ExtrinsicHelper.api.tx.balances.transferAllowDeath(proxyKeys.address, 1n * DOLLARS)
),
proxyKeys,
ExtrinsicHelper.api.events.balances.Transfer
Expand Down Expand Up @@ -84,7 +85,7 @@ describe('Proxy', function () {
ExtrinsicHelper.api.tx.proxy.proxy(
stashKeys.address,
'Any',
ExtrinsicHelper.api.tx.balances.transfer(proxyKeys.address, 1n * DOLLARS)
ExtrinsicHelper.api.tx.balances.transferAllowDeath(proxyKeys.address, 1n * DOLLARS)
),
proxyKeys,
ExtrinsicHelper.api.events.system.ExtrinsicFailed
Expand All @@ -104,7 +105,7 @@ describe('Proxy', function () {
stashKeys.address,
'Any',
ExtrinsicHelper.api.tx.utility.batch([
ExtrinsicHelper.api.tx.balances.transfer(proxyKeys.address, 1n * DOLLARS),
ExtrinsicHelper.api.tx.balances.transferAllowDeath(proxyKeys.address, 1n * DOLLARS),
])
),
proxyKeys,
Expand Down
11 changes: 3 additions & 8 deletions pallets/schemas/src/tests/deprecated_tests.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
use super::mock::*;
use crate::{Error, Event as AnnouncementEvent};
use common_primitives::{
node::{AccountId, Hash},
node::AccountId,
schema::{ModelType, PayloadLocation, SchemaId, SchemaSetting},
};
use frame_support::{
assert_noop, assert_ok,
traits::{ChangeMembers},
weights::Weight,
BoundedVec,
};
use frame_support::{assert_noop, assert_ok, traits::ChangeMembers, weights::Weight, BoundedVec};
use parity_scale_codec::Encode;
use serial_test::serial;

Expand Down Expand Up @@ -95,7 +90,7 @@ fn propose_to_create_schema_happy_path() {
);

// Find the Proposed event and get it's hash and index so it can be voted on
let proposed_events: Vec<(u32, Hash)> = System::events()
let proposed_events: Vec<(u32, <Test as frame_system::Config>::Hash)> = System::events()
.iter()
.filter_map(|event| match event.event {
RuntimeEvent::Council(pallet_collective::Event::Proposed {
Expand Down

0 comments on commit 669d90b

Please sign in to comment.