-
It's very common for factory patterns where there is A -> B-> C, where C should only be instantiated by B type contracts but due to the dynamic nature it's hard to enforce without hardcoding the value…
-
-
The problem is that the Factory contract works fine for the Rinkeby testnetwork. Token minting works fine. However, there are some problems with mumbai testnetwork (Polygon). The factory contract is d…
-
@Service
@Rank(123) // note: bug in Hk2 where rank defaults to 0 on factory types
public class PersistenceStoreFactory implements Factory {
@Override
public PersistenceStore provide() {
…
-
**Github username:** @0xmahdirostami
**Twitter username:** 0xmahdirostami
**Submission hash (on-chain):** 0xde135ac616f16a3c0c7f1c8f0525bf4331326803b0681e00426aad0be2cae995
**Severity:** high
**Desc…
-
eeyore
High
# Lack of access control in the `MarketFactory.updateExtension()` function.
## Summary
An attacker can set himself as an `extension`, which is an `allowed protocol-wide operator`. As…
-
The script for updating Super Tokens queries `superTokenLogicCreatedEvents` in order to get a list of previous canonical logic contracts, see https://github.com/superfluid-finance/protocol-monorepo/bl…
-
I use the code in readme to create a jetton transfer. but the message is rejected by Ton
use num_bigint::BigUint;
use std::time::SystemTime;
use tonlib::address::TonAddress;
use tonlib::cell:…
-
Seems like we have an issue with contracts that import another contract.
So I have 2 contracts:
https://github.com/matter-labs/zksync-contract-templates/tree/main/templates/quickstart/factories/cont…
-
1. Insufficient Check for Existing Code: The check vaultAddress.codehash != bytes32(0) is used to determine if a Vault contract has already been deployed at the computed address. However, this check i…