Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move get allocation to gosdk from blobber #1258

Closed
dabasov opened this issue Oct 19, 2023 · 0 comments
Closed

move get allocation to gosdk from blobber #1258

dabasov opened this issue Oct 19, 2023 · 0 comments
Assignees

Comments

@dabasov
Copy link
Member

dabasov commented Oct 19, 2023

move this function from blobber to gosdk

func requestAllocation(allocID string) (sa *transaction.StorageAllocation, err error) {
	var b []byte
	b, err = transaction.MakeSCRestAPICall(
		transaction.STORAGE_CONTRACT_ADDRESS,
		"/allocation",
		map[string]string{"allocation": allocID},
		chain.GetServerChain())
	if err != nil {
		return
	}
	sa = new(transaction.StorageAllocation)
	err = json.Unmarshal(b, sa)
	return
}
@dabasov dabasov assigned dabasov and Ash-KODES and unassigned dabasov Oct 19, 2023
@dabasov dabasov closed this as completed Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants