Questions tagged [access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

create multiple access tokens with erc721

I am trying to create an access control framework using erc721. the token would be used to get access. Each object owner owns an erc721 smart contract and will create one access token for every ...
user avatar
  • 1
0 votes
0 answers
7 views

10 ERC 20 Tokens (2018) Cannot be Accessed

0xa4f6D6484cCCEBf5Ea35159F0D387647b2a3c86A here is our gnosis safe multisig address. 10 panda earth tokens were sent to the address. it is an older contract and they do not show up on etherscan as ...
user avatar
1 vote
1 answer
42 views

Solidity private/internal function call from external function

what the purpose of that way to restrict access to function call? function updateQuorumNumerator(uint256 newQuorumNumerator) external virtual onlyGovernance { _updateQuorumNumerator(...
user avatar
1 vote
1 answer
46 views

How to make Smart Contract function only accessible from Application?

Let's say i want to make gaming NFT with variable Level. i have game which using that NFT, when we play the game the NFT will level up. i want the NFT only can be leveling up from the game. as i know ...
user avatar
1 vote
1 answer
36 views

Is it safe to check a uint mapping's value >0 in a require?

Context: A common access check or modifier is to use something like: require(boolMapping[msg.sender] == true); to ensure the caller is approved to use a function. Since mapping (address => uint256) ...
user avatar
  • 59
0 votes
0 answers
389 views

Filtered by token holder?

I swapped Ethereum for Synaps through Pancake. The transaction shows up as valid but i can't transfer/receive my Synaps to/in my external wallet, There is a message in bold that says: Filtered by ...
user avatar
0 votes
1 answer
59 views

Is it possible to delegatecall a function that calls a private function?

I don't think this is possible but I would just like to make sure. An example would be the following? pragma solidity ^0.4.0; // SPDX-License-Identifier: Unlicensed contract Victim{ ERC20 token; ...
user avatar
0 votes
2 answers
46 views

Backend for DApp

I'm developing a DApp, and I need some logic to handle events. This shouldn't be done in the Frontend of the application, right? So what would a good approach look like. I thought about a Java-Backend ...
user avatar
  • 27
0 votes
1 answer
383 views

DeclarationError: Identifier already declared

I'm getting the below compile error message: DeclarationError: Identifier already declared. --> contracts/coffeeBase/SupplyChain.sol:9:1: | 9 | import "../coffeeAccessControl/ConsumerRole.sol&...
user avatar
  • 31
1 vote
1 answer
86 views

Access control for blockchain

I am kinda new to blockchains and solidity. I am trying to create a smart contract that can keep track of inventory as well as be able to order new things if necessary. I would like it to have some ...
user avatar
2 votes
1 answer
386 views

Accessing struct members

Can we access the struct member using a variable as we access in JavaScript? For example: struct Abc { uint256 a, uint256 b } Abc xyz; string memName = 'a'; I want to do something like ...
user avatar
0 votes
1 answer
4k views

VM error: revert.The called function should be payable if you send value and the value you send should be less than your current balance

There is already a similar question, but it doesn't help me. So I ask this question again and expect something useful information. Two contracts named AccessControl.sol and Judge.sol. I've removed ...
user avatar
0 votes
1 answer
283 views

Need a guide to access my ropsten test network contracts through my command line and not remix

I have written and published a contract on the ropsten test network using remix. Now I want to access the functions of the smart contract from my command line (My PC) and not the remix IDE. Is there a ...
user avatar
  • 382
3 votes
2 answers
8k views

VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if

Hi Guys 👋 I have two contacts first one is SubToken and second one is MainContract. First I deploy MainContract after that I use createNewContract function and I create new SubToken. and then I ...
user avatar
7 votes
1 answer
4k views

TypeError: Indexed expression has to be a type, mapping or array (is function (address) view external returns (string memory,string memory...)

I have 2 contracts first one is sub second one is main . First i deploy main and create a new subtoken. Then I want to access my maincontract in subToken contract but I cant :( When I compile this ...
user avatar
0 votes
0 answers
32 views

How to verify access of child contracts?

I am using a factory A to produce child contracts. Now I want to guarantee that only these child contracts have access to a different contract B. Using the factory as a proxy is somehow a detour as I ...
user avatar
  • 21
2 votes
1 answer
88 views

Is there any way that smart contract can access xacml policies?

I am trying to implement role based access control model using blockchain. How do i store these policies? Later my smartcontract should be able to allow or deny the rquest of user based on policie. ...
user avatar
1 vote
2 answers
216 views

Decentralized Access Control in permissioned Blockchain

For a business use case I am conceptualizing for my master's thesis, which is based on a Blockchain system, I need to understand impacts on decentralization/trustlessness. Many people argue that ...
user avatar
  • 293
2 votes
2 answers
201 views

Make Smart Contract Only Accessible from a Web App

I have got a Solidity smart contract which only interacts with a React front-end using web3. I want to restrict access to the smart contract so that only the React front-end can access the smart ...
user avatar
  • 21
0 votes
0 answers
75 views

Controlling access to functions with VIEW visibility with signed transactions?

Controlling access to functions that require ETH is straight forward because you get an address you can trust because it has been signed and verified, and therefore upi can use for access control ...
user avatar
4 votes
3 answers
1k views

Accessing not public variables

Is it possible as the creater of the smart contract to access a not public variable? E.g.: contract MyContract { uint256 someLevel; function changeLevel(uint _newLevel) public { ...
user avatar
0 votes
1 answer
2k views

Move ERC20 tokens from Ethereum Wallet Contract to Account

In my Ethereum wallet i am trying to access my wallet conract. If I sync in light mode and import the wallet contract address it just stays there displayed, greyed out and nothing happens, no matter ...
user avatar
  • 1
0 votes
1 answer
502 views

Allow access to private ethereum network from certain IP only

I have a question regarding restriction access to private etehreum network. I created my Private Etehreum network using Geth(for now just only with one node) on the Ubuntu 16.04 virtual machine. And ...
user avatar
0 votes
1 answer
85 views

Fast access of any given transaction in the blockchain

That is a conceptual question that I am asking here. We are trying to developp an application to securely store the hashes of some files in the blockchain. Everything is automated (taking a file as ...
user avatar
2 votes
1 answer
979 views

Smart Contract Execution Rights - Can everyone who knows the public address of a smart contract call the smart contract?

Say I have a contract with the address and method below. myContract.at("0x9f8cedf1f93e46fac74cb9415db8bbec85f239b4").greet(); Can everyone who knows this address call this smart contract method? Any ...
user avatar
  • 1,845
1 vote
1 answer
25 views

Accessibility and security of the contract within a contract as a variable

Say I have one contract: contract Token { uint totalSupply; function Token() public { totalSupply = 0; } function mint() public{ //Do minting } } And then an ...
user avatar
1 vote
1 answer
32 views

Address Not Getting Stored Correctly in State Variable?

I am trying to write a contract where the originator of the contract will offer a reward that can only be claimed by a different address that she or he specifies. To do that, I am trying to create ...
user avatar
  • 11
0 votes
1 answer
289 views

Off-chain database and access control management by smart contracts

I am thinking about an application which consists of two main components; off-chain database and ethereum blockchain for managing the accesses to the off-chain database. Is there any similar sample? ...
user avatar
  • 141
2 votes
1 answer
276 views

Smart Contract to access to website

We want to create a simple smart contract: After the click of a "pay"-button, you have to pay automatically 0,01 ETH to our wallet and you can visit after the confirmend transaction a website/link/...
user avatar
  • 21
3 votes
1 answer
2k views

Where is ethereum and etc stored on my desktop when using Jaxx wallet?

There was an error when opening my jaxx wallet for windows 10 desptop (containing eth and etc), and my computer suggested to reinstall the application. Without thinking, I deleted the jaxx files (but ...
user avatar
1 vote
1 answer
477 views

Presale wallet gives zero funds

I have already asked this question but I post once again as helpdesk people at ethereum are asking to post here: After several years of waiting, I have decided to check how much ether I do have in my ...
user avatar
2 votes
1 answer
794 views

What is the best way to write into a byte variable at a predefined position?

According to the Solidity documentation one can access the byte at position k in for example a Bytes16 variable source with the following code: pragma solidity ^0.4.8; contract example { Bytes16 ...
user avatar
  • 529
1 vote
2 answers
295 views

What is the best practice between setting a variable public or using getters in Solidity?

From the solidity.readthedocs, a variable declared as public does not need a getter since an automatic accessor function is generated e.g: pragma solidity ^0.4.2; contract C { uint public data; }...
user avatar