Mintbase / Mintbase/neareth

[Contract] Take Storage Deposit

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.