Skip to content

Commit

Permalink
semantic variable naming improvment
Browse files Browse the repository at this point in the history
  • Loading branch information
fleandrei committed Jan 17, 2025
1 parent 95ea8e7 commit 7ed9f1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/onchain/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ func getCoinsKey() []byte {
DatastoreToDeployedContract If the datastore is a valid datastore for a deployed contract,
it will return the contract's bytecode, args and coins
If the datastore is not a valid datastore for a deployed contract,
it will return an empty ContractDatastore and success = false.
it will return an empty ContractDatastore and isDeployDatastore = false.
*/
func DatastoreToDeployedContract(datastore []DatastoreEntry) (contractDatastore ContractDatastore, success bool) {
func DatastoreToDeployedContract(datastore []DatastoreEntry) (
contractDatastore ContractDatastore,
isDeployDatastore bool,
) {
if !isContractDeployDatastore(datastore) {
return ContractDatastore{}, false
}
Expand Down

0 comments on commit 7ed9f1f

Please sign in to comment.