From cf268ffcd59f7a6c65d6bf96c154b62cc0c97fab Mon Sep 17 00:00:00 2001 From: durch Date: Wed, 9 Nov 2022 10:19:21 +0100 Subject: [PATCH] Actually save updated pledge cap --- contracts/vesting/src/contract.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/vesting/src/contract.rs b/contracts/vesting/src/contract.rs index da293349bf..ff6970d7a1 100644 --- a/contracts/vesting/src/contract.rs +++ b/contracts/vesting/src/contract.rs @@ -2,7 +2,7 @@ use crate::errors::ContractError; use crate::queued_migrations::migrate_to_v2_mixnet_contract; use crate::storage::{ account_from_address, BlockTimestampSecs, ADMIN, DELEGATIONS, MIXNET_CONTRACT_ADDRESS, - MIX_DENOM, + MIX_DENOM, save_account, }; use crate::traits::{ DelegatingAccount, GatewayBondingAccount, MixnodeBondingAccount, VestingAccount, @@ -158,7 +158,7 @@ pub fn try_update_locked_pledge_cap( let mut account = account_from_address(&address, deps.storage, deps.api)?; account.pledge_cap = Some(cap); - // update_locked_pledge_cap(amount, deps.storage)?; + save_account(&account, deps.storage)?; Ok(Response::default()) }