Skip to content

Conversation

@radkomih
Copy link
Collaborator

@radkomih radkomih commented Dec 8, 2022

#4

  • changes to use SCALE codec compatible with Tinygo
  • fix wrong field type from the spec
  • refactor and use better abstractions for the Host provided functionality

@radkomih radkomih requested a review from failfmi December 8, 2022 14:01
@radkomih radkomih force-pushed the scale-and-core-api branch 2 times, most recently from b60d628 to 7e5ff12 Compare December 9, 2022 06:59
*/
//go:export Core_initialize_block
func CoreInitializeBlock(dataPtr int32, dataLen int32) {
data := utils.ToWasmMemorySlice(dataPtr, dataLen)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be this should return a buffer?

failfmi
failfmi previously approved these changes Dec 9, 2022
@radkomih radkomih merged commit 1feaa34 into master Dec 9, 2022
@radkomih radkomih linked an issue Dec 9, 2022 that may be closed by this pull request
3 tasks
@radkomih radkomih deleted the scale-and-core-api branch December 12, 2022 10:00
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

Successfully merging this pull request may close these issues.

Use a SCALE codec compatible with Tinygo

3 participants