Is there an existing issue for this?
New feature
As a smart contract developer I would like to be able to retrieve, from the authorize entry point, the arguments that were provded in a contract call.
Currently, authorize_arguments.call only provides contract_id and entry_point and relies on the data field to let smart contracts provide additional data. This means that if a smart contract call check_authority and does not provide the contract call args in data then authorize is not able to verify the contract call arguments.
The idea is to add a new field to call_data and provide the contract call args in this new field:
message call_data {
bytes contract_id = 1 [(btype) = ADDRESS];
uint32 entry_point = 2;
bytes caller = 3;
bytes data = 4;
bytes call_args = 5;
}
Anything else?
authorize_arguments message definition
call_data message definition
Is there an existing issue for this?
New feature
As a smart contract developer I would like to be able to retrieve, from the
authorizeentry point, the arguments that were provded in a contract call.Currently,
authorize_arguments.callonly providescontract_idandentry_pointand relies on thedatafield to let smart contracts provide additional data. This means that if a smart contract callcheck_authorityand does not provide the contract call args indatathenauthorizeis not able to verify the contract call arguments.The idea is to add a new field to
call_dataand provide the contract call args in this new field:Anything else?
authorize_arguments message definition
call_data message definition