Skip to content

Commit

Permalink
fix some move entry-function names
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Nov 25, 2024
1 parent b631b82 commit 2a5b049
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/airdrop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ async fn main() -> Result<()> {
let script_function = EntryFunction::new(
ModuleId::new(
genesis_address(),
Identifier::new("TransferScripts").unwrap(),
Identifier::new("transfer_scripts").unwrap(),
),
Identifier::new("batch_peer_to_peer_v2").unwrap(),
vec![token_type.clone().into()],
Expand Down
2 changes: 1 addition & 1 deletion cmd/db-exporter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ pub fn create_account_txn_sent_as_association(
TransactionPayload::EntryFunction(EntryFunction::new(
ModuleId::new(
starcoin_vm_types::account_config::core_code_address(),
Identifier::new("Account").unwrap(),
Identifier::new("account").unwrap(),
),
Identifier::new("create_account_with_initial_amount").unwrap(),
vec![stc_type_tag()],
Expand Down
2 changes: 1 addition & 1 deletion cmd/starcoin/src/account/accept_token_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl CommandAction for AcceptTokenCommand {
ctx.state().build_and_execute_transaction(
opt.transaction_opts.clone(),
TransactionPayload::EntryFunction(EntryFunction::new(
ModuleId::new(core_code_address(), Identifier::new("Account").unwrap()),
ModuleId::new(core_code_address(), Identifier::new("account").unwrap()),
Identifier::new("accept_token").unwrap(),
vec![TypeTag::Struct(Box::new(
opt.token_code.clone().try_into().unwrap(),
Expand Down
4 changes: 2 additions & 2 deletions executor/tests/executor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ fn test_validate_txn_args() -> Result<()> {
let action = EntryFunction::new(
ModuleId::new(
core_code_address(),
Identifier::new("TransferScript").unwrap(),
Identifier::new("transfer_scripts").unwrap(),
),
Identifier::new("peer_to_peer").unwrap(),
vec![stc_type_tag()],
Expand All @@ -603,7 +603,7 @@ fn test_validate_txn_args() -> Result<()> {
let action = EntryFunction::new(
ModuleId::new(
core_code_address(),
Identifier::new("TransferScripts").unwrap(),
Identifier::new("transfer_scripts").unwrap(),
),
Identifier::new("peer_to_peer_v2").unwrap(),
vec![stc_type_tag()],
Expand Down
4 changes: 2 additions & 2 deletions vm/transaction-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub fn raw_accept_token_txn(
chain_id: ChainId,
) -> RawUserTransaction {
let payload = TransactionPayload::EntryFunction(EntryFunction::new(
ModuleId::new(core_code_address(), Identifier::new("Account").unwrap()),
ModuleId::new(core_code_address(), Identifier::new("account").unwrap()),
Identifier::new("accept_token").unwrap(),
vec![TypeTag::Struct(Box::new(token_code.try_into().unwrap()))],
vec![],
Expand All @@ -229,7 +229,7 @@ pub fn encode_create_account_script_function(
initial_balance: u128,
) -> EntryFunction {
EntryFunction::new(
ModuleId::new(core_code_address(), Identifier::new("Account").unwrap()),
ModuleId::new(core_code_address(), Identifier::new("account").unwrap()),
Identifier::new("create_account_with_initial_amount").unwrap(),
vec![token_type],
vec![
Expand Down

0 comments on commit 2a5b049

Please sign in to comment.