Skip to content

Commit a91bfc3

Browse files
authored
Merge pull request #7 from enigmampc/fix-typo
fixed a couple typos
2 parents 07c5d19 + 194e9ff commit a91bfc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/contract.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ fn try_redeem<S: Storage, A: Api, Q: Querier>(
512512
config.set_total_supply(total_supply);
513513
} else {
514514
return Err(StdError::generic_err(
515-
"You are tyring to redeem more tokens than what is available in the total supply",
515+
"You are trying to redeem more tokens than what is available in the total supply",
516516
));
517517
}
518518

519-
let withdrawl_coins: Vec<Coin> = vec![Coin {
519+
let withdrawal_coins: Vec<Coin> = vec![Coin {
520520
denom: "uscrt".to_string(),
521521
amount,
522522
}];
@@ -525,7 +525,7 @@ fn try_redeem<S: Storage, A: Api, Q: Querier>(
525525
messages: vec![CosmosMsg::Bank(BankMsg::Send {
526526
from_address: env.contract.address,
527527
to_address: env.message.sender,
528-
amount: withdrawl_coins,
528+
amount: withdrawal_coins,
529529
})],
530530
log: vec![],
531531
data: Some(to_binary(&HandleAnswer::Redeem { status: Success })?),
@@ -1104,7 +1104,7 @@ mod tests {
11041104
}
11051105

11061106
/// Will return a ViewingKey only for the first account in `initial_balances`
1107-
fn auth_query_helper(
1107+
fn _auth_query_helper(
11081108
initial_balances: Vec<InitialBalance>,
11091109
) -> (ViewingKey, Extern<MockStorage, MockApi, MockQuerier>) {
11101110
let (init_result, mut deps) = init_helper(initial_balances.clone());

0 commit comments

Comments
 (0)