Skip to content

cadut generate api : global address map  #61

Description

@hotrungnhan

It might be better if we can pass a object as the following to setting up all the contract addresses once, instead of passing it every time we invoke.

example :

const globalAddressMap= {
  emulator:{
    SomeContract :"some address"
  },
  testnet:{
    SomeContract :"some address"
  },
  production:{
    SomeContract :"some address"
  }
}
cadut.setGlobalAddressMap(globalAddressMap)

and then cadut will decide to use address map network depend on environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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