Skip to content

main branch test failing #102

@hashmesan

Description

@hashmesan

Most likely from the VaultIncentives and VaultRegistryLib changes..

quoc@quoc-linux:/mnt/fast01/harmony/onebtc/contract/bridge$ truffle test test/Redeem.test.js 
Using network 'test'.


Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

Warning: Potentially unsafe deployment of OneBtc

    You are using the `unsafeAllow.external-library-linking` flag to include external libraries.
    Make sure you have manually checked that the linked libraries are upgrade safe.

OneBtc deployed at  0x2D1B9827362EFB1Ca232e0fFe216DB50f23Cc408
VaultReserve deployed at  0x968ed329Deba53f3AAF50Cf3F228862D7dbAd8a0
VaultReward deployed at  0x2120bea37754c64A54a900B13ABdB59Dce1D9489


  Contract: Redeem unit test
    1) "before all" hook for "Register Vault with 10 ONE Collateral"


  0 passing (2s)
  1 failing

  1) Contract: Redeem unit test
       "before all" hook for "Register Vault with 10 ONE Collateral":
     Error: Contract `OneBtc` is not upgrade safe

*: Linking external libraries like `VaultRegistryLib` is not yet supported                                                                                                               
    Use libraries with internal functions only, or skip this check with the `unsafeAllowLinkedLibraries` flag                                                                            
    if you have manually checked that the libraries are upgrade safe                                                                                                                     
    https://zpl.in/upgrades/error-006
      at assertUpgradeSafe (node_modules/@openzeppelin/upgrades-core/src/validate/query.ts:19:11)                                                                                        
      at deployImpl (node_modules/@openzeppelin/truffle-upgrades/src/utils/deploy-impl.ts:44:20)                                                                                         
      at processTicksAndRejections (internal/process/task_queues.js:97:5)                                                                                                                
      at deployProxy (node_modules/@openzeppelin/truffle-upgrades/src/deploy-proxy.ts:35:26)                                                                                             
      at Context.<anonymous> (test/Redeem.test.js:34:19)                                                                                                                                 



quoc@quoc-linux:/mnt/fast01/harmony/onebtc/contract/bridge$ truffle test test/Redeem.test.js  --unsafeAllowLinkedLibraries
> Warning: possible unsupported (undocumented in help) command line option: --unsafeAllowLinkedLibraries
Using network 'test'.


Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.

Warning: Potentially unsafe deployment of OneBtc

    You are using the `unsafeAllow.external-library-linking` flag to include external libraries.
    Make sure you have manually checked that the linked libraries are upgrade safe.

OneBtc deployed at  0x741E91F17888c57DdBA536f5c4D0F967A50C62Bf
VaultReserve deployed at  0xCaDFE31a94E68C298f50c1f6790E899F2c904062
VaultReward deployed at  0x31F266191B2bca2A9008162960A6b29a1f3265aC


  Contract: Redeem unit test
    1) "before all" hook for "Register Vault with 10 ONE Collateral"


  0 passing (2s)
  1 failing

  1) Contract: Redeem unit test
       "before all" hook for "Register Vault with 10 ONE Collateral":
     Error: Contract `OneBtc` is not upgrade safe

*: Linking external libraries like `VaultRegistryLib` is not yet supported
    Use libraries with internal functions only, or skip this check with the `unsafeAllowLinkedLibraries` flag 
    if you have manually checked that the libraries are upgrade safe
    https://zpl.in/upgrades/error-006
      at assertUpgradeSafe (node_modules/@openzeppelin/upgrades-core/src/validate/query.ts:19:11)
      at deployImpl (node_modules/@openzeppelin/truffle-upgrades/src/utils/deploy-impl.ts:44:20)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at deployProxy (node_modules/@openzeppelin/truffle-upgrades/src/deploy-proxy.ts:35:26)
      at Context.<anonymous> (test/Redeem.test.js:34:19)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions