Update docs

This commit is contained in:
github-actions
2023-05-09 19:56:30 +00:00
parent 47e38c7bda
commit 6ae39c4dc1
579 changed files with 30453 additions and 21485 deletions

View File

@ -6,7 +6,7 @@ const AddressArraysMock = artifacts.require('AddressArraysMock');
const Bytes32ArraysMock = artifacts.require('Bytes32ArraysMock');
const Uint256ArraysMock = artifacts.require('Uint256ArraysMock');
contract('Arrays', function (accounts) {
contract('Arrays', function () {
describe('findUpperBound', function () {
context('Even number of elements', function () {
const EVEN_ELEMENTS_ARRAY = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
@ -89,9 +89,27 @@ contract('Arrays', function (accounts) {
describe('unsafeAccess', function () {
for (const { type, artifact, elements } of [
{ type: 'address', artifact: AddressArraysMock, elements: Array(10).fill().map(() => web3.utils.randomHex(20)) },
{ type: 'bytes32', artifact: Bytes32ArraysMock, elements: Array(10).fill().map(() => web3.utils.randomHex(32)) },
{ type: 'uint256', artifact: Uint256ArraysMock, elements: Array(10).fill().map(() => web3.utils.randomHex(32)) },
{
type: 'address',
artifact: AddressArraysMock,
elements: Array(10)
.fill()
.map(() => web3.utils.randomHex(20)),
},
{
type: 'bytes32',
artifact: Bytes32ArraysMock,
elements: Array(10)
.fill()
.map(() => web3.utils.randomHex(32)),
},
{
type: 'uint256',
artifact: Uint256ArraysMock,
elements: Array(10)
.fill()
.map(() => web3.utils.randomHex(32)),
},
]) {
it(type, async function () {
const contract = await artifact.new(elements);