Skip to content

Remove StorageContext #4115

@shargon

Description

@shargon

Summary or problem description
It doesn't make sense to use the storage context class, as well as ReadOnly or Write. Do we plan to be able to forward that stack item to another contract and have it write to our storage using the context? I don't think so. In terms of security, it opens a door that I believe shouldn't exist. It also always requires obtaining storage from the current context, which is always the current contract, and it should always be ReadOnly for Find and Get, and normal for Put.

Either I'm missing the point, or I don't see the need to maintain it. Calling the context and forwarding the stack items consumes extra gas, and it opens the door to potential security issues.

Do you have any solution you want to propose?
Remove StorageContext

Where in the software does this update applies to?

  • Compiler
  • VM

Metadata

Metadata

Assignees

Labels

DiscussionInitial issue state - proposed but not yet accepted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions