Skip to content

Wrong GasCost for CALLs with value transfer on StorageRent (RSKIP240) #279

@fedejinich

Description

@fedejinich

According to the RSKIP240, CALLs with value transfer are priced with 9000 gas, but that's not the actual RSK implementation. If you execute a CALL opcode, it will require at first 700 gas (CALL), then if you're sending value, you'll need to charge an extra of 9000 gas (VT_CALL).

To be more precisely the actual gas cost for a CALL with value transfer it's given by:

CALL (with value > 0): CALL (700) + VT_CALL (9000) = 9700 gas

NOTE: I'm excluding the STIPEND_CALL (2300) gas cost

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions