Skip to content

Conversation

@czareko
Copy link
Contributor

@czareko czareko commented Nov 19, 2025

No description provided.

@czareko czareko requested review from dastansam, illuzen and n13 November 19, 2025 22:07
full_data[0..4].copy_from_slice(b"modl");
full_data[4..12].copy_from_slice(b"py/trsry");
let treasury_account = subxt::utils::AccountId32(full_data);
// Get Treasury account ID using the same method as runtime
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we supposed to make transactions on behalf of the treasury account if there's no private key? Only by governance?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a regression so not a blocker - just asking

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait shouldn't this be

		let treasury_account: AccountId32 =
			quantus_runtime::configs::TreasuryPalletId::get().into_account_truncating();

Copy link
Contributor

@n13 n13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - but I am wondering if there's not a way to just call the treasury pallet directly so we don't duplicate the code here.

@czareko czareko merged commit 6bae4a8 into main Dec 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants