[Contract] Take Storage Deposit
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
We will need to determine how many bytes and Near-Encrypted EVM-Private key is and
- assert length of bytes passed into set_key is correct.
- assert attached deposit is sufficient and
- transfer attached deposit to the contract.
Hint: Some helpful contract code exists within here: https://github.com/Mintbase/mb-contracts/blob/main/mb-factory/src/lib.rs
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading mb-factory/src/lib.rs from the linked Mintbase contract for the existing storage-deposit pattern, then trace the set_key entry point in this repository. Define the key byte length and verify how attached deposits are handled. Done means set_key rejects an incorrect length or insufficient deposit and transfers a sufficient deposit to the contract.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100