[Contract Verification] Sophon Mainnet contract verification problem. The SafeL2 contract could not be verified. #834
Replies: 2 comments 2 replies
-
It appears you are encountering issues with contract verification on the Sophon Mainnet using the ZKsync block explorer. The errors and warnings you've shared indicate specific Solidity practices that might be problematic on the ZKsync Era network, particularly concerning the use of Here are a few steps and recommendations to address these issues:
If these steps do not resolve the issue, or if you need further assistance, consider reaching out for more specific support through the ZKsync developers discussions on Github. This platform can provide more tailored advice for your situation. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
@DenSmolonski hey! More info about your issue would be helpful, for example:
|
Beta Was this translation helpful? Give feedback.
-
Team or Project
Protofire Safe
Environment
Mainnet
Block Explorer
https://explorer.zksync.io/
Issue Type
Contract Address
0x610fcA2e0279Fa1F8C00c8c2F71dF522AD469380
Compiler Type
Multi-part contract
zkSolc Version
1.5.4
Solc Version
0.7.6
Contract Name
SafeL2.sol
Contract Code
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
import "./Safe.sol";
/**
@title SafeL2 - An implementation of the Safe contract that emits additional events on transaction executions.
@notice For a more complete description of the Safe contract, please refer to the main Safe contract
Safe.sol
.@author Stefan George - @Georgi87
@author Richard Meissner - @rmeissner
*/
contract SafeL2 is Safe {
event SafeMultiSigTransaction(
address to,
uint256 value,
bytes data,
Enum.Operation operation,
uint256 safeTxGas,
uint256 baseGas,
uint256 gasPrice,
address gasToken,
address payable refundReceiver,
bytes signatures,
// We combine nonce, sender and threshold into one to avoid stack too deep
// Dev note: additionalInfo should not contain
bytes
, as this complicates decodingbytes additionalInfo
);
event SafeModuleTransaction(address module, address to, uint256 value, bytes data, Enum.Operation operation);
// @inheritdoc Safe
function execTransaction(
address to,
uint256 value,
bytes calldata data,
Enum.Operation operation,
uint256 safeTxGas,
uint256 baseGas,
uint256 gasPrice,
address gasToken,
address payable refundReceiver,
bytes memory signatures
) public payable override returns (bool) {
bytes memory additionalInfo;
{
additionalInfo = abi.encode(nonce, msg.sender, threshold);
}
emit SafeMultiSigTransaction(
to,
value,
data,
operation,
safeTxGas,
baseGas,
gasPrice,
gasToken,
refundReceiver,
signatures,
additionalInfo
);
return super.execTransaction(to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures);
}
// @inheritdoc Safe
function execTransactionFromModule(
address to,
uint256 value,
bytes memory data,
Enum.Operation operation
) public override returns (bool success) {
emit SafeModuleTransaction(msg.sender, to, value, data, operation);
success = super.execTransactionFromModule(to, value, data, operation);
}
}
Constructor Arguments
The are no arguments
Hardhat Verify Plugin Version
^1.6.0
Repo Link (Optional)
https://github.com/safe-global/safe-smart-account
Additional Details
Hi there.
We have encountered issue during smart contract verification. The issue log below. We have tried verify contract using
--suppress-errors sendtransfer
without any success. Any help would be greatly appreciated!Address - https://explorer.sophon.xyz/address/0x610fcA2e0279Fa1F8C00c8c2F71dF522AD469380#contract
Smart contract verification URL - https://verification-explorer.sophon.xyz/contract_verification
Beta Was this translation helpful? Give feedback.
All reactions