Skip to content

Commit

Permalink
Add account id to claim event
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyafromrussia committed Nov 21, 2023
1 parent 8ada4bd commit 735341a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contract/src/claim/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ impl Contract {
account.last_claim_at = now.into();

let event_data = ClaimData {
account_id,
details: details
.iter()
.map(|(timestamp, amount)| (*timestamp, U128(*amount)))
Expand Down
1 change: 1 addition & 0 deletions model/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub struct BurnData {
#[derive(Serialize, Deserialize, Debug)]
#[serde(crate = "near_sdk::serde")]
pub struct ClaimData {
pub account_id: AccountId,
pub details: Vec<(UnixTimestamp, U128)>,
pub total_claimed: U128,
}
Expand Down
Binary file modified res/sweat_claim.wasm
Binary file not shown.

0 comments on commit 735341a

Please sign in to comment.