Skip to content

Commit

Permalink
test: Use empty types for cw20-x impls
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Aug 6, 2024
1 parent 063a76c commit 186db32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/contracts/cw20-base/src/allowances.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cosmwasm_std::{Addr, Binary, Order, Response, StdError, StdResult, Uint128};
use cosmwasm_std::{Addr, Binary, Empty, Order, Response, StdError, StdResult, Uint128};
use cw20_allowances::responses::{
AllAccountsResponse, AllAllowancesResponse, AllSpenderAllowancesResponse, AllowanceInfo,
AllowanceResponse, SpenderAllowanceInfo,
Expand All @@ -18,6 +18,8 @@ const DEFAULT_LIMIT: u32 = 10;

impl Cw20Allowances for Cw20Base {
type Error = ContractError;
type ExecC = Empty;
type QueryC = Empty;

/// Allows spender to access an additional amount tokens from the owner's (env.sender) account.
/// If expires is Some(), overwrites current allowance expiration with this one.
Expand Down
4 changes: 3 additions & 1 deletion examples/contracts/cw20-base/src/marketing.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
use crate::contract::Cw20Base;
use crate::error::ContractError;
use crate::validation::verify_logo;
use cosmwasm_std::{Response, StdError, StdResult};
use cosmwasm_std::{Empty, Response, StdError, StdResult};
use cw20_marketing::responses::{DownloadLogoResponse, LogoInfo, MarketingInfoResponse};
use cw20_marketing::{Cw20Marketing, EmbeddedLogo, Logo};
use sylvia::types::{ExecCtx, QueryCtx};

impl Cw20Marketing for Cw20Base {
type Error = ContractError;
type ExecC = Empty;
type QueryC = Empty;

fn update_marketing(
&self,
Expand Down
4 changes: 3 additions & 1 deletion examples/contracts/cw20-base/src/minting.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
use crate::contract::{Cw20Base, MinterData};
use crate::error::ContractError;
use cosmwasm_std::{Response, StdResult, Uint128};
use cosmwasm_std::{Empty, Response, StdResult, Uint128};
use cw20_minting::responses::MinterResponse;
use cw20_minting::Cw20Minting;
use sylvia::types::{ExecCtx, QueryCtx};

impl Cw20Minting for Cw20Base {
type Error = ContractError;
type ExecC = Empty;
type QueryC = Empty;

fn mint(
&self,
Expand Down

0 comments on commit 186db32

Please sign in to comment.