Skip to content

Commit

Permalink
fixup! Merge branch 'main' into draft
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Nov 17, 2022
1 parent 62798ec commit 8929369
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions wasm/wasm_source/src/vp_implicit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ mod tests {

// Credit the tokens to the source before running the transaction to be
// able to transfer from it
tx_env.credit_tokens(&source, &token, amount);
tx_env.credit_tokens(&source, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down Expand Up @@ -386,7 +386,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&vp_owner, &token, amount);
tx_env.credit_tokens(&vp_owner, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down Expand Up @@ -434,7 +434,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&vp_owner, &token, amount);
tx_env.credit_tokens(&vp_owner, &token, None, amount);

tx_env.write_public_key(&vp_owner, &public_key);

Expand Down Expand Up @@ -488,7 +488,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&source, &token, amount);
tx_env.credit_tokens(&source, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down
8 changes: 4 additions & 4 deletions wasm/wasm_source/src/vp_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ mod tests {

// Credit the tokens to the source before running the transaction to be
// able to transfer from it
tx_env.credit_tokens(&source, &token, amount);
tx_env.credit_tokens(&source, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down Expand Up @@ -288,7 +288,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&vp_owner, &token, amount);
tx_env.credit_tokens(&vp_owner, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down Expand Up @@ -336,7 +336,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&vp_owner, &token, amount);
tx_env.credit_tokens(&vp_owner, &token, None, amount);

tx_env.write_public_key(&vp_owner, &public_key);

Expand Down Expand Up @@ -388,7 +388,7 @@ mod tests {

// Credit the tokens to the VP owner before running the transaction to
// be able to transfer from it
tx_env.credit_tokens(&source, &token, amount);
tx_env.credit_tokens(&source, &token, None, amount);

// Initialize VP environment from a transaction
vp_host_env::init_from_tx(vp_owner.clone(), tx_env, |address| {
Expand Down

0 comments on commit 8929369

Please sign in to comment.