Refactor kredits address initialization #35
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "refactor/kredits-init"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This moves the Kredits initialization to the instance which allows us to be more flexible with handling contract addresses.
Example:
instead of calling
setup
:setup
is still available but deprecated.Please note: if a custom IPFS config is needed this needs to be set on the
kredits
instance to overwrite the default:@ -21,65 +19,50 @@ function capitalize(word) {
}
We can use
Object.keys(ABIS)
and removestatic get contractNames()
.Nice! Just a suggestion.