Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Stop building RawVal vec by hand #101

Merged
merged 1 commit into from
Aug 31, 2022

Conversation

sisuresh
Copy link
Contributor

No description provided.

@sisuresh sisuresh enabled auto-merge (squash) August 31, 2022 16:39
@sisuresh sisuresh merged commit 8b5a6a2 into stellar-deprecated:main Aug 31, 2022
Copy link
Contributor

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

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

🎉

let msg = SignaturePayload::V0(SignaturePayloadV0 {
function: symbol!("xfer"),
contract: self.contract_id.clone(),
network: self.env.ledger().network_passphrase(),
args,
args: (from_id.clone(), nonce.clone(), to.clone(), amount.clone()).into_val(&self.env),
Copy link
Contributor

@leighmcculloch leighmcculloch Aug 31, 2022

Choose a reason for hiding this comment

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

Fyi should be possible to use refs instead of clones too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh nice let me try that. I need to open another PR anyways because I forgot to update approve.

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

Successfully merging this pull request may close these issues.

2 participants