현재 바오밥넷에 배포가 안됩니다

요 몇일 잘되다가 오늘 갑자기 안됩니다.

Compiling your contracts...
===========================
> Compiling .\contracts\GSN\Context.sol
> Compiling .\contracts\Migrations.sol
> Compiling .\contracts\access\Roles.sol
> Compiling .\contracts\access\roles\MinterRole.sol
> Compiling .\contracts\access\roles\PauserRole.sol
> Compiling .\contracts\drafts\Counters.sol
> Compiling .\contracts\introspection\IKIP13.sol
> Compiling .\contracts\introspection\KIP13.sol
> Compiling .\contracts\introspection\KIP13Checker.sol
> Compiling .\contracts\lifecycle\Pausable.sol
> Compiling .\contracts\lifecycle\SelfDestructible.sol
> Compiling .\contracts\math\SafeMath.sol
> Compiling .\contracts\mocks\ERC1155ReceiverMock.sol
> Compiling .\contracts\mocks\ERC721ReceiverMock.sol
> Compiling .\contracts\mocks\KIP13CheckerMock.sol
> Compiling .\contracts\mocks\KIP13Mock.sol
> Compiling .\contracts\mocks\KIP13\KIP13InterfacesSupported.sol
> Compiling .\contracts\mocks\KIP13\KIP13NotSupported.sol
> Compiling .\contracts\mocks\KIP17FullMock.sol
> Compiling .\contracts\mocks\KIP17MintableBurnableImpl.sol
> Compiling .\contracts\mocks\KIP17Mock.sol
> Compiling .\contracts\mocks\KIP17PausableMock.sol
> Compiling .\contracts\mocks\KIP17ReceiverMock.sol
> Compiling .\contracts\mocks\KIP37BurnableMock.sol
> Compiling .\contracts\mocks\KIP37Mock.sol
> Compiling .\contracts\mocks\KIP37PausableMock.sol
> Compiling .\contracts\mocks\KIP37ReceiverMock.sol
> Compiling .\contracts\mocks\KIP37TokenMock.sol
> Compiling .\contracts\mocks\KIP7BurnableMock.sol
> Compiling .\contracts\mocks\KIP7MetadataMock.sol
> Compiling .\contracts\mocks\KIP7MintableMock.sol
> Compiling .\contracts\mocks\KIP7Mock.sol
> Compiling .\contracts\mocks\KIP7PausableMock.sol
> Compiling .\contracts\mocks\MinterRoleMock.sol
> Compiling .\contracts\mocks\PauserRoleMock.sol
> Compiling .\contracts\ownership\Ownable.sol
> Compiling .\contracts\token\KIP17\IERC721Receiver.sol
> Compiling .\contracts\token\KIP17\IKIP17.sol
> Compiling .\contracts\token\KIP17\IKIP17Enumerable.sol
> Compiling .\contracts\token\KIP17\IKIP17Full.sol
> Compiling .\contracts\token\KIP17\IKIP17Metadata.sol
> Compiling .\contracts\token\KIP17\IKIP17Receiver.sol
> Compiling .\contracts\token\KIP17\KIP17.sol
> Compiling .\contracts\token\KIP17\KIP17Burnable.sol
> Compiling .\contracts\token\KIP17\KIP17Enumerable.sol
> Compiling .\contracts\token\KIP17\KIP17Full.sol
> Compiling .\contracts\token\KIP17\KIP17ILikeCocaCola.sol
> Compiling .\contracts\token\KIP17\KIP17ILikeCocaCola.sol
> Compiling .\contracts\token\KIP17\KIP17Metadata.sol
> Compiling .\contracts\token\KIP17\KIP17MetadataMintable.sol
> Compiling .\contracts\token\KIP17\KIP17Mintable.sol
> Compiling .\contracts\token\KIP17\KIP17Pausable.sol
> Compiling .\contracts\token\KIP17\KIP17Token.sol
> Compiling .\contracts\token\KIP17\KIP17TokenCola.sol
> Compiling .\contracts\token\KIP37\IERC1155Receiver.sol
> Compiling .\contracts\token\KIP37\IKIP37.sol
> Compiling .\contracts\token\KIP37\IKIP37MetadataURI.sol
> Compiling .\contracts\token\KIP37\IKIP37Receiver.sol
> Compiling .\contracts\token\KIP37\KIP37.sol
> Compiling .\contracts\token\KIP37\KIP37Burnable.sol
> Compiling .\contracts\token\KIP37\KIP37Holder.sol
> Compiling .\contracts\token\KIP37\KIP37Mintable.sol
> Compiling .\contracts\token\KIP37\KIP37Pausable.sol
> Compiling .\contracts\token\KIP37\KIP37Receiver.sol
> Compiling .\contracts\token\KIP37\KIP37Token.sol
> Compiling .\contracts\token\KIP7\IKIP7.sol
> Compiling .\contracts\token\KIP7\IKIP7Receiver.sol
> Compiling .\contracts\token\KIP7\KIP7.sol
> Compiling .\contracts\token\KIP7\KIP7Burnable.sol
> Compiling .\contracts\token\KIP7\KIP7Metadata.sol
> Compiling .\contracts\token\KIP7\KIP7Mintable.sol
> Compiling .\contracts\token\KIP7\KIP7Pausable.sol
> Compiling .\contracts\token\KIP7\KIP7Token.sol
> Compiling .\contracts\token\KIP7\KIP7TokenFull.sol
> Compiling .\contracts\utils\Address.sol
> Compiling .\contracts\utils\Array.sol
> Compiling .\contracts\utils\Array.sol
> Compiling .\contracts\utils\JsmnSolLib.sol
> Compiling .\contracts\utils\Json.sol
> Compiling .\contracts\utils\Json.sol
> Compiling .\contracts\utils\Random.sol
> Compiling .\contracts\utils\Random.sol
> Compiling .\contracts\utils\String.sol
> Compiling .\contracts\utils\String.sol
> Compilation warnings encountered:

    project:/contracts/token/KIP37/KIP37Pausable.sol:79:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
        address operator,
        ^--------------^
,project:/contracts/token/KIP37/KIP37Pausable.sol:80:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
        address from,
        ^----------^
,project:/contracts/token/KIP37/KIP37Pausable.sol:81:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
        address to,
        ^--------^
,project:/contracts/token/KIP37/KIP37Pausable.sol:83:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
        uint256[] memory amounts,
        ^----------------------^
,project:/contracts/token/KIP37/KIP37Pausable.sol:84:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
        bytes memory data
        ^---------------^
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:355:9: Warning: Unused local variable.
        uint256 totalPrice = amount * KLAY_PRICE_PER_UNIT;
        ^----------------^
,project:/contracts/utils/String.sol:25:5: Warning: Function state mutability can be restricted to pure
    function char(bytes1 b) private returns (bytes1 c)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/utils/String.sol:45:5: Warning: Function state mutability can be restricted to pure
    function Length(string memory text) internal returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/utils/String.sol:60:5: Warning: Function state mutability can be restricted to pure
    function Substring(string memory str, uint startIndex, uint endIndex) internal returns (string memory)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/utils/String.sol:72:5: Warning: Function state mutability can be restricted to pure
    function Append(string memory base, string memory append) internal returns (string memory)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/utils/String.sol:77:5: Warning: Function state mutability can be restricted to pure
    function Append(string memory base, uint256 append) internal returns (string memory)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/utils/Random.sol:5:5: Warning: Function state mutability can be restricted to view
    function Range(uint256 min, uint256 max) internal returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:45:5: Warning: Function state mutability can be restricted to view
    function IsActiveMintable() public returns (bool)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:222:5: Warning: Function state mutability can be restricted to view
    function GetNFTCount(address user, NFTType nftType) public returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:256:5: Warning: Function state mutability can be restricted to view
    function TryTokenIdToIndex(address user, uint256 tokenId) private returns (bool result, uint256 index)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:363:5: Warning: Function state mutability can be restricted to view
    function Foo() external returns (string memory)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:369:5: Warning: Function state mutability can be restricted to view
    function GetBalance() public returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:374:5: Warning: Function state mutability can be restricted to view
    function GetKlayBalance(address user) public returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:381:5: Warning: Function state mutability can be restricted to view
    function GetSoldCount() public returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).
,project:/contracts/token/KIP17/KIP17ILikeCocaCola.sol:386:5: Warning: Function state mutability can be restricted to view
    function GetCombinedCount() public returns (uint256)
    ^ (Relevant source part starts here and spans across multiple lines).

> Artifacts written to D:\git\nft-cola\truffle\build\contracts
> Compiled successfully using:
   - solc: 0.5.6+commit.b259423e.Emscripten.clang


Starting migrations...
======================
> Network name:    'kasBaobab'
> Network id:      1001
> Block gas limit: 999999999999 (0xe8d4a50fff)


1_initial_migration.js
======================

   Replacing 'Migrations'

이 이후에 넘어가지 않고 그냥 멈춘상태로 계속 있는데요…
원인을 알수 있을까요?

몇일전 배포 했던 코드로 돌아가도 배포가 되지 않습니다.

해결 했습니다. truffle-config 에서 kasBaobab 에 gasPrice를 null 로 지정했습니다. 문제가 있다면 에러 로그가 노출이 되면 좋겠네요.

1 Like