New answers tagged

0 votes

Transaction Hijacking?

After doing a lot of digging into the transaction that was sent. The attacker called their own malicious smart contract to call my contract using the same method from my transaction but replacing the ...
Samuel Wagner's user avatar
0 votes

What's type hash's usecase in EIP-712?

EIP-712 is about "hashing and signing of typed structured data". It does provide "an extensible mechanism for domain separation" which is important for security, but the goal of ...
eth's user avatar
  • 85.4k
0 votes

msg.sender vs owner

Using owner in the context of authorization is generally a safer practice compared to tx.origin. While both concepts involve determining the origin of a transaction, they have distinct characteristics ...
BharatT's user avatar
  • 51
1 vote
Accepted

msg.sender vs owner

You should limit the access to Contract B's functions to only be calleable by Contract A. Respectively, you check whether the msg.sender is an authorized entity in Contract A, call Contract B if he is,...
Mila A's user avatar
  • 638
1 vote
Accepted

Will upgrading a smart contract to inherit from a new base class cause potential storage conflicts with UUPS proxy pattern?

Yes, the state variables of the myToken contract will occupy new slot positions, following those from ERC20Votes. Here are two solutions: Use @openzeppelin\contracts-upgradeable\token\ERC20\...
tenbits's user avatar
  • 2,094

Top 50 recent answers are included