Skip to content

Commit

Permalink
[gas-faucet] fix: call twitter function args (rooch-network#3021)
Browse files Browse the repository at this point in the history
* fix: call twitter function args

* fix invitation_object_id
  • Loading branch information
mx819812523 authored and steelgeek091 committed Dec 22, 2024
1 parent cc276dc commit 1b882e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/rooch-faucet/src/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ impl Faucet {
let function_call = invitation_module::claim_from_twitter_function_call(
self.invitation_module_address,
tweet_id,
self.invitation_object_id.clone(),
inviter_addr,
public_key,
claimer_sign,
Expand Down
5 changes: 5 additions & 0 deletions crates/rooch-faucet/src/invitation_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub fn claim_from_faucet_function_call(
pub fn claim_from_twitter_function_call(
module_address: AccountAddress,
tweet_id: String,
invitation_object_id: ObjectID,
inviter: AccountAddress,
public_key: String,
signature: String,
Expand All @@ -86,6 +87,10 @@ pub fn claim_from_twitter_function_call(
.to_move_value()
.simple_serialize()
.unwrap(),
invitation_object_id
.to_move_value()
.simple_serialize()
.unwrap(),
MoveValue::Address(inviter).simple_serialize().unwrap(),
hex::decode(public_key)
.unwrap()
Expand Down

0 comments on commit 1b882e7

Please sign in to comment.