Skip to content

Commit

Permalink
Cleanup free storage update allocation (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Dec 13, 2023
1 parent e3b28c1 commit d74e39c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion core/transaction/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ const (
NEW_ALLOCATION_REQUEST = "new_allocation_request"
NEW_FREE_ALLOCATION = "free_allocation_request"
UPDATE_ALLOCATION_REQUEST = "update_allocation_request"
FREE_UPDATE_ALLOCATION = "free_update_allocation"
LOCK_TOKEN = "lock"
UNLOCK_TOKEN = "unlock"

Expand Down
18 changes: 0 additions & 18 deletions zboxcore/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1231,24 +1231,6 @@ func UpdateAllocation(
return
}

func CreateFreeUpdateAllocation(marker, allocationId string, value uint64) (string, int64, error) {
if !sdkInitialized {
return "", 0, sdkNotInitialized
}

var input = map[string]interface{}{
"allocation_id": allocationId,
"marker": marker,
}

var sn = transaction.SmartContractTxnData{
Name: transaction.FREE_UPDATE_ALLOCATION,
InputArgs: input,
}
hash, _, n, _, err := smartContractTxnValue(sn, value)
return hash, n, err
}

func FinalizeAllocation(allocID string) (hash string, nonce int64, err error) {
if !sdkInitialized {
return "", 0, sdkNotInitialized
Expand Down

0 comments on commit d74e39c

Please sign in to comment.