Skip to content

Commit

Permalink
Fix salary_gov_plugin query_sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
WGB5445 committed Sep 13, 2022
1 parent ba950d1 commit ed5c77c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: YieldFarmingV2
: StarcoinFramework
source_digest: CFF023550985F24E4560ACCFB800E20816DEA1B0A5971F71B4EB29B19C91E329
source_digest: D7009E25679D370668CC815C5CF9F50E1CFFB3A9E058F2C9020F9C03179EF15A
build_flags:
dev_mode: false
test_mode: false
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/daospaceplugin/salary_gov_plugin.exp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ task 10 'run'. lines 254-269:

task 11 'run'. lines 272-283:
{
"gas_used": 393187,
"gas_used": 392604,
"status": "Executed"
}

task 13 'run'. lines 288-304:
{
"gas_used": 291420,
"gas_used": 290837,
"status": "Executed"
}

Expand All @@ -48,13 +48,13 @@ task 14 'run'. lines 307-317:

task 16 'run'. lines 321-338:
{
"gas_used": 454361,
"gas_used": 453778,
"status": "Executed"
}

task 18 'run'. lines 342-358:
{
"gas_used": 291420,
"gas_used": 290837,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/daospaceplugin/salary_gov_plugin.move
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module creator::SalaryGovPlugin {
}

fun compute_salary_amount<DAOT: store, TokenT>(member: address): u128 acquires SalaryReceive {
let sbt_amount = DAOSpace::query_sbt<DAOT, SalaryGovPlugin>(member);
let sbt_amount = DAOSpace::query_sbt<DAOT>(member);
let receive = borrow_global<SalaryReceive<DAOT, TokenT>>(member);

sbt_amount * ((Timestamp::now_seconds() - receive.last_receive_time) as u128)
Expand Down

0 comments on commit ed5c77c

Please sign in to comment.