Closed jacekv closed 4 years ago
Problem has been solved. It turns out that you have to change the All
variable:
pragma solidity ^0.4.18;
contract Permissions {
/// Allowed transaction types mask
uint32 constant None = 0;
uint32 constant All = 0x0f; // before 0xffffffff
uint32 constant Basic = 0x01;
uint32 constant Call = 0x02;
uint32 constant Create = 0x04;
uint32 constant Private = 0x08;
function allowedTxType(address sender) public returns (uint32) {
return All;
}
}
I would recommend updating the docs regarding this :)
Hi everyone,
I setup a private PoA network using AuRa. All works fine. I am able to send transactions, create contracts, and interact with those. The next step is to setup the Transaction Type Permission contract, which looks as follows:
I compile the smart contract using Remix and copied the bytecode in order to add it to my spec file (it's at 0x0000000000000000000000000000000000000009):
When I start my network and try to send a transaction through MetaMask using
0xeC3b2668dB1ed047DFa4C8D06C68dc6ec86e0dB4
I get the following message:I was wondering, why it says that
0x161
is the sender. As it turns out, it is the hash of the transaction:Am I doing something wrong or is there somewhere a bug?
Thanks :)