Questions tagged [inline-action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

Are all actions on a transaction supposed to be included in the block?

I've noticed something strange that is confusing me. I have a transaction that includes multiple actions on it, but it appears that the "transfer" action did not get recorded in the actual block. You ...
0
votes
1answer
13 views

Return token to owner after initiating a transfer to my contract

Good Day, I am working on a contract where for example, If I send 2 ETH to a contract, ( 1 ETH = 2 Cryptokitty tokens ) then that contract is supposed to return me 4 Cryptokitty tokens. What I Have ...
0
votes
0answers
10 views

Missing permission of account, but permission is given to acting account

I have account1 and account2. account1 has a contract with an action called update(): void mycontract::update(){ require_auth(get_self()); table_t t(get_self(),scope); auto r = t.find(index); ...
0
votes
0answers
11 views

Simple token deposit function fails permission check [duplicate]

This deposit action is inspired by the EOSIO dice contract (especially the action().send() bit, which fails): https://github.com/EOSIO/eos/blob/v1.0.5/contracts/dice/dice.cpp accounts is the same as ...
2
votes
0answers
29 views

How to get the parent action in the inline action?

There's a contract A with action void a(string memo), it calls an inline action for contract B with action void b(), can I get the "memo" parameter in the function void b()? Note that I can't modify ...
1
vote
0answers
27 views

cannot get latest state of table after modifying table in inline action

As shown with code below, I modify table in an inline action, and then want to get the latest data. But the data I get is not the latest. Why? void mycontract::myfunc() { action ( ...
1
vote
2answers
180 views

What is the difference between a method call and the use of SEND_INLINE_ACTION?

in looking at the code for eosio.token (https://github.com/EOSIO/eos/blob/master/contracts/eosio.token/eosio.token.cpp) the issue method calls the transfer method at the bottom, but instead of just ...
1
vote
0answers
48 views

Inline actions doesn`t show up in Jungle Testnet Monitor

On the Jungle testnet when I transfer tokens to somebody I can see the transaction in account history, but when I call contract action, which has inline transfer action, I can`t see it on Testnet ...
2
votes
1answer
269 views

How can multisig trigger an action in contract other than eosio.token contract?

Other than eosio.token contract how can we call the inline actions in contract from multisig contract. For example, I have a contracts namely mltisigmetup(with action meetup). Now I need a ...
5
votes
1answer
253 views

Are inline actions asynchronous?

The docs say that Communication among contracts should be considered as occurring asynchronously. However, the description of inline communication given is Inline communication takes the form ...
4
votes
2answers
2k views

Require inline action be sent by contract, and not account

I have contractB trigger an inline action: /// @abi action void send() { action( permission_level{ _self, N(active) }, N(contractA), N(get), std::make_tuple( _self ) ...
3
votes
1answer
431 views

How to authorize inline action of another contract within a contract?

I deployed a contract omes.user. In the reguser(account_name user) action of contract omes.user I want to send an inline action to another contract eosio.token to issue some tokens to user. Here is ...
1
vote
1answer
537 views

Can we get all the actions from all blocks?

Somebody say we can get all the blocks through rpc, then we can get all the actions. But I found that in the block information, there're no inline actions, so many inline actions will lose, right?
5
votes
2answers
561 views

How to set up chain of permission levels for a user?

This is a great answer that describes the ways you can handle user permission levels for inline actions. According to that answer: This can be done a few ways (ordered from most risky for the user ...
4
votes
1answer
617 views

“dice” contract “withdraw” action problem

I wonder if anyone experienced a similar problem and managed to resolve it. I'm testing the "dice" contract on my local tesnet. I've setup up all necessary contracts and could deposit assets to the "...
2
votes
1answer
359 views

Are inline actions are executed in a separate transaction?

As it is stated here , Inline communication paragraph inline actions are supposed to be executed in the same transaction and inherit authorization from calling action. But when i do action.send ...
3
votes
1answer
355 views

Contract A makes an inline call to contract B. How can B determine that A is the one making the call?

Contract A calls an inline action on contract B via INLINE_ACTION_SENDER(...). How can contract B determine that it is being called by contract A?
2
votes
1answer
958 views

require_auth differs from the auth check of INLINE_ACTION_SENDER but how?

In a contract action I've got the following: require_auth(from); // NOTICE THIS LINE... INLINE_ACTION_SENDER(contract, transfer)( N(contract), {from, N(active)}, // ... AND THIS LINE. {...