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