Zondax / filecoin-solidity

Filecoin Solidity API Library
Apache License 2.0
93 stars 43 forks source link

Rename GetDealEpochPriceMethodNum in MarketTypes.sol to GetDealTotalPriceMethodNum #337

Closed ainhoa-a closed 1 year ago

ainhoa-a commented 1 year ago

The constant used to invoke the market actor’s GetDealTotalPrice method is named GetDealEpochPrice:

uint constant GetDealEpochPriceMethodNum = 4287162428;

It will increase readability if the constant is named GetDealTotalPriceMethodNum to indicate that it is a FRC42 hash of the GetDealTotalPrice method and the name would match the actor implementation:

GetDealTotalPriceExported = frc42_dispatch::method_hash!("GetDealTotalPrice"),

:link: zboto Link