Questions tagged [access]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

How to implement access control for arbitrary transaction data

Is there a contract that receives transactions, and forwards them to arbitrary other contracts, by inspecting the transaction data, i.e. target contract address, function signature, parameter values, ...
siamii's user avatar
  • 121
0 votes
1 answer
20 views

How to use a Server to run OnlyOwner functions?

I'm working on a game PoC and I've got questions about player rewards good practices. Sure I understand that those functions cannot be public and onlyOwner-restricted, but how does it work actually ? ...
Building Dwarf's user avatar
0 votes
2 answers
24 views

Question about 'Access Control' vulnerability

As far as I understand, access control is an insecure visibility setting of critical functions. For example, minting, setting owner, and sendTransaction or somewhat. It seems like we can just set ...
Wonjae Choi's user avatar
3 votes
2 answers
85 views

Is there anything called conditional access control in solidity?

So here is my problem . I have 2 users of my DApp : Admin and User Admin is the contract owner and can access admin panel of my DApp . User is a normal user having something like a conditional access ....
Gaurav Pant's user avatar
2 votes
1 answer
157 views

Can I change Openzeppelin access control without having the right permissions?

If you check this link: openzeppelin github access control you will notice they use 2 function for granting a role: function grantRole(bytes32 role, address account) public virtual override onlyRole(...
Crypto Man's user avatar
0 votes
0 answers
38 views

To hash or not to hash strings for bytes32 AccessControl roles

Is there a preferred/safest way to declare roles for Openzeppelin's AccessControl.sol? I would imagine a straight assignment of a bytes32 from a string would be sufficient for role creation as long as ...
JasonGarcia.eth's user avatar
1 vote
1 answer
25 views

Crypto blog project using smart contracts as payment system and NFT's as access tokens for articles - am I doing it right?

I'm beginning my journey with blockchain and smart contracts. I want to create web application - blog or articles website. Each user will be able to write an article and save it. Every article will be ...
gmexo's user avatar
  • 111
2 votes
2 answers
70 views

Access control on smart contracts

Is it possible to have access control on which smart contracts will be deployed in an EVM chain? Or, how can we have authorized smart contracts on an EVM chain?
OrionN's user avatar
  • 23
0 votes
1 answer
39 views

Assigning roles to addresses after off-chain KYC verification

I have a marketplace smart contract from which users can buy NFTs, however these users need to have been verified before being able to purchase them. The verification is done off-chain through a third-...
human's user avatar
  • 113
0 votes
1 answer
207 views

Access deployed contracts on Ganache local blockchain - BrownieEnvironmentError: Functionality not available in local environment

Using a generic SimpleStorage.sol contract and a deploy.py I'm able to create a contract on a Ganache local blockchain and access it during execution. On brownie console is possible to do the same ...
Max-Cap-ll's user avatar
1 vote
1 answer
299 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(...
4rgon4ut's user avatar
1 vote
1 answer
111 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 ...
satrio galih's user avatar
1 vote
1 answer
311 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) ...
panda's user avatar
  • 109
0 votes
0 answers
2k 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 ...
Pjot Splinter's user avatar
0 votes
1 answer
333 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; ...
bonk scientist's user avatar
0 votes
2 answers
86 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 ...
Luex's user avatar
  • 51
0 votes
1 answer
1k 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&...
alpo's user avatar
  • 164
1 vote
1 answer
198 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 ...
SupplyBlockChain's user avatar
2 votes
1 answer
1k 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 ...
Shubham Singh's user avatar
0 votes
1 answer
5k 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 ...
shuzang's user avatar
0 votes
1 answer
321 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 ...
vteja711's user avatar
  • 402
3 votes
2 answers
11k 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 ...
Furkan Demirel's user avatar
9 votes
1 answer
8k 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 ...
Furkan Demirel's user avatar
1 vote
0 answers
78 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 ...
Olympus's user avatar
  • 31
2 votes
1 answer
115 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. ...
Shirisha Kollapuram's user avatar
1 vote
3 answers
237 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 ...
Marcellvs's user avatar
  • 423
3 votes
3 answers
448 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 ...
Moishin's user avatar
  • 31
0 votes
0 answers
79 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 ...
Robert Oschler's user avatar
4 votes
3 answers
2k 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 { ...
sunwarr10r's 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 ...
Peter's user avatar
  • 23
0 votes
1 answer
702 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 ...
Michael Maverick's user avatar
0 votes
1 answer
94 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
1k 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 ...
Nathan Aw's user avatar
  • 1,924
1 vote
1 answer
31 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 ...
Vladislav Achramovic's user avatar
1 vote
1 answer
45 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 ...
Ramon's user avatar
  • 11
0 votes
1 answer
332 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? ...
sara.r's user avatar
  • 141
2 votes
1 answer
277 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/...
Alex's 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 ...
MichielV's user avatar
1 vote
1 answer
526 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 ...
developer12's user avatar
2 votes
1 answer
817 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 ...
floyd's user avatar
  • 589
1 vote
2 answers
450 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; }...
FrenchieiSverige's user avatar