ID 747804 trueTransfer(address,uint256) 0x0f3a297b

I'm trying to add this code to my contract, but I'm getting an error, can the source code worker help?

Error message :

DeclarationError: Undeclared identifier. Did you mean "truetransfer"?
--> test.sol:73:14:
|
73 | emit trueTransfer(msg.sender, recipient, amount);
| ^^^^^^^^^^^^

Hi, welcome to the community! :wave:

Just like the error message, you do not define a event named trueTransfer.

1 Like

Not sure what your target is, maybe you can have a look at OpenZepplin Wizard It is an interactive smart contract generator based on OpenZeppelin Contracts, so you do not need to write code by yourself.

so wallet A uses the function transferFrom() to transfer token to wallet B, and then wallet B uses the function transfer to transfer token to wallet C?

Up to your function logic.
If possible, you can share your contract code at here.

1 Like

Three account: Alice, Bob, Charlie.

I sent you 1 coin -> token.transferFrom(Alice, Bob, 1)(Caller is Alice)
then I sent that 1 coin to another wallet from you. -> token.transferFrom(Bob, Charlie, 1) (Caller is Bob).
If the Bob does not want to send a transaction, maybe you need a Meta Transaction, but seems like you want to make these two transaction into a function to execute, but the caller should be Alice and then Bob, so it is a little complex to achieve.

You deleted most of the discussion, so I think you have solved your problem, and I will close this topic later.

No, it's not solved, I don't think I'll get any help from you. because you are making comments too slowly and unnecessarily. You are not solution oriented. close the subject, have a nice day.

Hi. I agree with @Skyge that some discussion is deleted and the question wasn't really clear since the beginning.

We ask our community to keep certain level of quality when posting questions so the team and community can answer properly.

I'm closing