Skip to main content

Questions tagged [external-function]

1 vote
0 answers
56 views

My Project is about a Token in which the Holder can disable their token at the Old Address and Receive a New Minted token. It uses 2 different contacts. I put the functions in the BBB contract and ...
Suka Kasu's user avatar
1 vote
1 answer
65 views

I was wondering if interface functions automatically revert the whole transaction on failure or not? Let's say I want to call the sync() function of a liquidityPair, which usually returns no boolean: ...
Andy's user avatar
  • 185
0 votes
0 answers
61 views

i have 2 smart contracts: // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./../node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol"; contract HNFT is ERC721 { ...
Andrea Lorenzetti's user avatar
1 vote
0 answers
159 views

I want to run a serverless function that is actually serverless. Serverless functions platforms like AWS Lambda, Google Cloud Functions, etc... are not actually serverless. A centralized VM owned by ...
ChristianOConnor's user avatar
0 votes
0 answers
74 views

i'm facing a weird issue and i can't understand why it's happening after quadraple checking everything, i have a token which has USDT internal liquidity, i also have matrix contract which is in charge ...
S Arv's user avatar
  • 11
0 votes
0 answers
252 views

I've been having this issue for a while. Whenever I try calling a function or deploy a contract using Remix, the Metamask doesn't pop-up, even though if Metamask is connected to Remix. The only thing ...
caiosa's user avatar
  • 23
1 vote
2 answers
87 views

Came across this script teaching people how to use library, but I don't understand why the function testFind should be external in the following script. The definition of external function is : ...
Simon Zhao's user avatar
1 vote
0 answers
26 views

My goal is to sign a raw transaction, then broadcast it through the Ftmscan/Etherscan API. I don't want to deal with web3 providers like Infura/Alchemy, if possible. Just write the raw transaction, ...
Ico's user avatar
  • 11
0 votes
1 answer
42 views

I have been trying to get a basic interface working on remix, but havent managed to. Did read a few examples but I must still be making some mistake. Trying to interact with this contract: // SPDX-...
Msantamaria's user avatar
1 vote
0 answers
298 views

I have an external function that modifies the state and returns a value: function test(string memory testValue) external returns (string memory) { state = string.concat("test",...
Alex Bean's user avatar
  • 201
1 vote
1 answer
119 views

I am aware that calldata is a read-only byte-addressable space. When calling a contract from an EOA it contains the function signature of the call as well as the input args. However when a contract ...
FreddyC's user avatar
  • 311
0 votes
0 answers
45 views

I am trying to create a staking protocols where rewards and staking are separate. But there are multiple tokens that get rewarded and I need to update each of them in a loop. Now, my question is how ...
Mr.SsS's user avatar
  • 435
0 votes
2 answers
192 views

Suppose we have a contact like this: contract x { function y() external { // do some magic! if (some_condition) { another_contract_address.call(abi.encodeWithSignature("...
Ehsan Khodarahmi's user avatar
3 votes
1 answer
2k views

Assume we have the following solidity contract: contract khiar { function mooz(uint size) external { // do something with mooz! } function bademjoon(uint size) external { /...
Ehsan Khodarahmi's user avatar
331 votes
9 answers
121k views

Apart from the public modifier Ethereum introduces the external one. Both may be called outside of the contract and inside (the later one by this.f() pattern). Moreover, according to the docs: ...
Jakub Wojciechowski's user avatar