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

Bug fix/sc cross built in call #2030

Merged
merged 6 commits into from Jun 26, 2020

Conversation

sasurobert
Copy link
Contributor

@sasurobert sasurobert commented Jun 26, 2020

Built in function has to create cross shard SC result if destination is not in shard

andreibancioiu
andreibancioiu previously approved these changes Jun 26, 2020
iulianpascalau
iulianpascalau previously approved these changes Jun 26, 2020
Data: []byte(setUserNameTxData),
CallType: vmcommon.AsynchronousCall,
}
return &vmcommon.VMOutput{ReturnCode: vmcommon.Ok}, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

return wmOutput, nil ?

iulianpascalau
iulianpascalau previously approved these changes Jun 26, 2020
@@ -16,7 +16,7 @@ func TestChangeOwnerAddress_ProcessBuiltinFunction(t *testing.T) {

coa := changeOwnerAddress{}

owner := []byte("sender")
owner := []byte("send")
Copy link
Contributor

Choose a reason for hiding this comment

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

"owner" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the length is verified for the validity of the input, so length must be equal.

@sasurobert sasurobert merged commit d807248 into feat/new-features Jun 26, 2020
@sasurobert sasurobert deleted the bugFix/sc-cross-builtIn-call branch June 26, 2020 21:26
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.

None yet

4 participants