removeLockups

function removeLockups( bytes _lockups );

Lockup ์ œ Parameters

TypeValueDescription

bytes

_lockups

Lockup ์ •๋ณด๋“ค

โ€ป ABI Encode ํ˜•ํƒœ

Example

     // Lockup ์ •๋ณด ์ž…๋ ฅ (์•„๋ž˜ ์ˆœ์œผ๋กœ ๊ธฐ์ž…)

    address account;        // Lockup ๊ณ„์ • ์ฃผ์†Œ
    uint256 lockupIndex;    // Lockup Index

    let lockupInfo = [
        [accounts[1].address, 0],
        [accounts[1].address, 1],
        [accounts[1].address, 2],
    ]

    // Encode ํ˜•ํƒœ๋กœ ์น˜ํ™˜
    const abiCoder = ethers.utils.defaultAbiCoder;
    const encodeLockupInfo= abiCoder.encode(["tuple(address, uint256, uint256)[]"], [mintInfo]); 

    // exec
    await lockupContract.removeLockups(encodeLockupInfo);

Last updated