Skip to content

Commit edda103

Browse files
committed
fixed timestamp type
1 parent 754acbe commit edda103

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

contracts/voting/dao-voting-cosmos-staked/src/tests/test_tube/integration_tests.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)