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

Removes extra caller input from transfer_public #905

Open
wants to merge 1 commit into
base: testnet3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions wasm/src/programs/manager/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ impl ProgramManager {
amount_credits: f64,
recipient: &str,
transfer_type: &str,
caller: Option<String>,
amount_record: Option<RecordPlaintext>,
fee_credits: f64,
fee_record: Option<RecordPlaintext>,
Expand Down Expand Up @@ -121,7 +120,6 @@ impl ProgramManager {
}
"public" | "transfer_public" | "transferPublic" => {
let inputs = [
JsValue::from(&caller.unwrap()),
JsValue::from(recipient),
JsValue::from(&amount_microcredits.to_string().add("u64")),
]
Expand Down
2 changes: 0 additions & 2 deletions wasm/tests/offchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ async fn test_fee_validation() {
100.00,
"aleo184vuwr5u7u0ha5f5k44067dd2uaqewxx6pe5ltha5pv99wvhfqxqv339h4",
"private",
None,
Some(fee_record.clone()),
0.9,
Some(fee_record.clone()),
Expand All @@ -209,7 +208,6 @@ async fn test_fee_validation() {
0.5,
"aleo184vuwr5u7u0ha5f5k44067dd2uaqewxx6pe5ltha5pv99wvhfqxqv339h4",
"private",
None,
Some(fee_record.clone()),
100.00,
Some(fee_record.clone()),
Expand Down
Loading