Commit 1e18bf24 by github-actions

Transpile 0fe67a20

parent 970616ca
...@@ -30,6 +30,6 @@ contract Create2ImplUpgradeable is Initializable { ...@@ -30,6 +30,6 @@ contract Create2ImplUpgradeable is Initializable {
return Create2Upgradeable.computeAddress(salt, codeHash, deployer); return Create2Upgradeable.computeAddress(salt, codeHash, deployer);
} }
receive() payable external {} receive() external payable {}
uint256[50] private __gap; uint256[50] private __gap;
} }
...@@ -29,7 +29,7 @@ contract DummyImplementationUpgradeable is Initializable { ...@@ -29,7 +29,7 @@ contract DummyImplementationUpgradeable is Initializable {
value = 10; value = 10;
} }
function initializePayable() payable public { function initializePayable() public payable {
value = 100; value = 100;
} }
...@@ -37,7 +37,7 @@ contract DummyImplementationUpgradeable is Initializable { ...@@ -37,7 +37,7 @@ contract DummyImplementationUpgradeable is Initializable {
value = _value; value = _value;
} }
function initializePayable(uint256 _value) payable public { function initializePayable(uint256 _value) public payable {
value = _value; value = _value;
} }
...@@ -69,7 +69,7 @@ contract DummyImplementationV2Upgradeable is Initializable, DummyImplementationU ...@@ -69,7 +69,7 @@ contract DummyImplementationV2Upgradeable is Initializable, DummyImplementationU
function __DummyImplementationV2_init_unchained() internal initializer { function __DummyImplementationV2_init_unchained() internal initializer {
} }
function migrate(uint256 newVal) payable public { function migrate(uint256 newVal) public payable {
value = newVal; value = newVal;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
const path = require('path');
const bre = require('@nomiclabs/buidler');
const { Compiler } = require('@nomiclabs/buidler/internal/solidity/compiler');
const compiler = new Compiler(
bre.config.solc.version,
path.join(bre.config.paths.cache, 'compilers'),
);
module.exports = Object.assign(compiler.getSolc(), { __esModule: true });
...@@ -9,5 +9,12 @@ if [ ! -d node_modules ]; then ...@@ -9,5 +9,12 @@ if [ ! -d node_modules ]; then
fi fi
rm -rf "$OUTDIR" rm -rf "$OUTDIR"
solidity-docgen -t docs -o "$OUTDIR" -e contracts/mocks,contracts/examples --output-structure readmes
solidity-docgen \
-t docs \
-o "$OUTDIR" \
-e contracts/mocks,contracts/examples \
--output-structure readmes \
--solc-module scripts/prepare-docs-solc.js
node scripts/gen-nav.js "$OUTDIR" > "$OUTDIR/../nav.adoc" node scripts/gen-nav.js "$OUTDIR" > "$OUTDIR/../nav.adoc"
## Testing ## Testing
Unit test are critical to the OpenZeppelin framework. They help ensure code quality and mitigate against security vulnerabilities. The directory structure within the `/test` directory corresponds to the `/contracts` directory. OpenZeppelin uses Truffle testing framework(based on the Mocha JavaScript testing framework) and the Chai assertion library. To learn more about how tests are structured, please reference OpenZeppelin’s Testing Guide. Unit test are critical to the OpenZeppelin framework. They help ensure code quality and mitigate against security vulnerabilities. The directory structure within the `/test` directory corresponds to the `/contracts` directory.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment