Questions tagged [palletid]
The palletid tag has no usage guidance.
4
questions
0
votes
1
answer
33
views
Token(CannotCreate) error on transferring asset to PalletId account
I'm new to Substrate and I'm creating a pallet in which the user can create contests by depositing a certain amount of assets. My idea is to send that amount to the PalletId account, but I'm having an ...
4
votes
1
answer
36
views
How to choose a Lock Identifier?
In my pallet, I am writing a function that checks if a user has some minimum amount of free balance, and if they do, proceed with the transaction by locking a DepositFee amount. I found that set_lock ...
9
votes
1
answer
199
views
How can we get a Pallet's Sub-Account Address using PolkadotJS API
We have a pallet which has their own account e.g *b"replace_" and we are able to generate sub accounts addresses like so:
let sub_account: T::AccountId = T::PalletId::get().into_sub_account((...
3
votes
1
answer
98
views
How can we be sure that a Pallet-account/address is unique in a chain and no one else in the chain can replicate the same address?
In Ethereum, the contract address/account isn't formed trivially from a cryptographically-generated private-public key pair, but rather by using a separate method, as described here.
In Substrate, ...