Skip to content

Commit

Permalink
Wrapper: remove Agent v5 override (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Mar 11, 2020
1 parent 0863587 commit d183bc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = [
{
name: '@aragon/wrapper',
path: "packages/aragon-wrapper/dist/index.js",
limit: "475 KB"
limit: "525 KB"
},
{
name: '@aragon/api-react',
Expand Down
19 changes: 5 additions & 14 deletions packages/aragon-wrapper/src/core/apm/overrides.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import { addressesEqual } from '../../utils'

const MAINNET_AGENT_REPO = '0x52AC38791EF1561b172Ca89d7115F178d058E57b'
const MAINNET_UNLISTED_AGENT_V5 = '0x3A93C17FC82CC33420d1809dDA9Fb715cc89dd37'

// This function is used to override how an app version should be loaded based on the base contract
// address (codeAddress).
// It may be useful in situations like:
// - Resolving an unpublished app version to the latest published version
// - Resolving an old app version to the latest published version (e.g. to force a frontend upgrade)
export function shouldOverrideAppWithLatestVersion (repoAddress, codeAddress) {
if (
addressesEqual(repoAddress, MAINNET_AGENT_REPO) &&
addressesEqual(codeAddress, MAINNET_UNLISTED_AGENT_V5)
) {
// Unlisted mainnet Agent v5 with NFT hotfix
// See https://github.com/aragon/deployments/issues/176
return true
}

return false
}

0 comments on commit d183bc5

Please sign in to comment.