File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
contracts/voting/dao-voting-cosmos-staked/src/tests/test_tube Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ fn test_staked_voting_power_and_update() {
6969 let voting_power = vp_contract. query_vp ( & accounts[ 0 ] . address ( ) , None ) . unwrap ( ) ;
7070 assert_eq ! ( voting_power. power, Uint128 :: new( 100 ) ) ;
7171
72- // Authz grant bot to execute
72+ let expiration = app. get_block_timestamp ( ) . plus_days ( 1 ) ;
73+
74+ // Authz grant bot to execute by creating a proposal, voting on it, and
75+ // executing it.
7376 proposal_single
7477 . execute (
7578 & dao_proposal_single:: msg:: ExecuteMsg :: Propose (
@@ -97,7 +100,10 @@ fn test_staked_voting_power_and_update() {
97100 }
98101 . to_any( ) ,
99102 ) ,
100- expiration: Some ( app. get_block_timestamp( ) . plus_seconds( 5 ) ) ,
103+ expiration: Some ( osmosis_std:: shim:: Timestamp {
104+ seconds: expiration. seconds( ) ,
105+ nanos: expiration. subsec_nanos( ) ,
106+ } ) ,
101107 } ) ,
102108 }
103109 . into( ) ,
You can’t perform that action at this time.
0 commit comments