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 in txnbuild/change_trust.go func BuildXDR #1296

Closed
adirutwn opened this issue May 16, 2019 · 4 comments
Closed

Bug in txnbuild/change_trust.go func BuildXDR #1296

adirutwn opened this issue May 16, 2019 · 4 comments
Assignees
Labels
txnbuild 2nd-generation transaction build library for Go SDK

Comments

@adirutwn
Copy link

adirutwn commented May 16, 2019

func (ct *ChangeTrust) BuildXDR() (xdr.Operation, error) {
	...
	op := xdr.Operation{Body: body}
	SetOpSourceAccount(&op, ct.SourceAccount)
	return xdr.Operation{Body: body}, nil
}

Should return op not the xdr.Operation{Body: body}

@ire-and-curses
Copy link
Member

Thank you, great catch!

@poliha would you raise a PR for this to go in the 1.2 release?

op := xdr.Operation{Body: body}
SetOpSourceAccount(&op, ct.SourceAccount)
return xdr.Operation{Body: body}, nil```

It should be

op := xdr.Operation{Body: body}
SetOpSourceAccount(&op, ct.SourceAccount)
return op, nil```

@ire-and-curses ire-and-curses added the txnbuild 2nd-generation transaction build library for Go SDK label May 16, 2019
@ire-and-curses ire-and-curses added this to the txnbuild v1.2.0 milestone May 16, 2019
@adirutwn
Copy link
Author

just make a PR. Not sure if it works this way. But here's my PR -> #1298

@ire-and-curses
Copy link
Member

Thanks for the PR. Normally we would accept that, but today we are in the middle of a release so needed to do this ourselves from the correct branch. Looking forward to your next contribution!

@ire-and-curses
Copy link
Member

Fixed in #1299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
txnbuild 2nd-generation transaction build library for Go SDK
Projects
None yet
Development

No branches or pull requests

3 participants