Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

NewOrder() has no member "add_outputs" #4

Open
TJvrDev opened this issue Jul 10, 2019 · 1 comment
Open

NewOrder() has no member "add_outputs" #4

TJvrDev opened this issue Jul 10, 2019 · 1 comment

Comments

@TJvrDev
Copy link

TJvrDev commented Jul 10, 2019

After using protobuf to translate dex.proto into dex.pb.h, it doesnt contain the member add_outputs(). Any ideas on what I could be doing wrong?

        auto order = NewOrder();

	// Build a trade
	auto output = order.add_outputs();
	output->set_address(toKeyhash.data(), toKeyhash.size());
	auto outputCoin = output->add_coins();
	outputCoin->set_denom("BNB");
	outputCoin->set_amount(1'001'000'000);

It's also showing toKeyhash.data() is undefined.

@TJvrDev
Copy link
Author

TJvrDev commented Jul 10, 2019

I see that I can define toKeyhash with something like:

auto result = Address::decode("bnb1hgm0p7khfk85zpz5v0j8wnej3a90w709vhkdfu");
Data toKeyhash = result.first.keyHash;

But i'm still working through not finding the member add_outputs()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant