Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
733a354c
Commit
733a354c
authored
Jul 18, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: log issues in ci
parent
8677175c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
config.yml
.circleci/config.yml
+12
-0
Deployer.sol
packages/contracts-bedrock/scripts/Deployer.sol
+2
-1
No files found.
.circleci/config.yml
View file @
733a354c
...
...
@@ -1115,6 +1115,18 @@ jobs:
command
:
|
docker logs ops-bedrock-op-proposer-1 || echo "No logs."
when
:
on_fail
-
run
:
name
:
Log deployment artifact
command
:
|
cat broadcast/Deploy.s.sol/900/run-latest.json || echo "No deployment file found"
when
:
on_fail
working_directory
:
packages/contracts-bedrock
-
run
:
name
:
Log artifacts directory
command
:
|
ls -R forge-artifacts || echo "No forge artifacts found"
when
:
on_fail
working_directory
:
packages/contracts-bedrock
-
when
:
condition
:
and
:
...
...
packages/contracts-bedrock/scripts/Deployer.sol
View file @
733a354c
...
...
@@ -104,7 +104,7 @@ abstract contract Deployer is Script {
string memory deployTx = _getDeployTransactionByContractAddress(addr);
string memory contractName = _getContractNameFromDeployTransaction(deployTx);
console.log("Syncing
%s:
%s", deploymentName, contractName);
console.log("Syncing
deployment %s: contract
%s", deploymentName, contractName);
string memory fqn = getFullyQualifiedName(contractName);
string[] memory args = getDeployTransactionConstructorArguments(deployTx);
...
...
@@ -117,6 +117,7 @@ abstract contract Deployer is Script {
uint256 numDeployments = 0;
try vm.readFile(artifactPath) returns (string memory res) {
numDeployments = stdJson.readUint(string(res), "$.numDeployments");
numDeployments++;
vm.removeFile(artifactPath);
} catch {}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment