From 1b882e7850b2145260642b9b3ac9f2507d1229d1 Mon Sep 17 00:00:00 2001 From: mx <53249469+mx819812523@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:26:37 +0800 Subject: [PATCH] [gas-faucet] fix: call twitter function args (#3021) * fix: call twitter function args * fix invitation_object_id --- crates/rooch-faucet/src/faucet.rs | 1 + crates/rooch-faucet/src/invitation_module.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/crates/rooch-faucet/src/faucet.rs b/crates/rooch-faucet/src/faucet.rs index 1ca46c5254..1600530c14 100644 --- a/crates/rooch-faucet/src/faucet.rs +++ b/crates/rooch-faucet/src/faucet.rs @@ -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, diff --git a/crates/rooch-faucet/src/invitation_module.rs b/crates/rooch-faucet/src/invitation_module.rs index 9353ece1dd..7d81d8a37d 100644 --- a/crates/rooch-faucet/src/invitation_module.rs +++ b/crates/rooch-faucet/src/invitation_module.rs @@ -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, @@ -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()