Skip to content

Commit

Permalink
fix: setOwnerCutPerMillion to use formatPct (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara authored Jan 29, 2020
1 parent 4c41e65 commit b3d15f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/data/decentraland/knownFunctions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
'setOwnerCutPerMillion(uint256)':
'Set marketplace fees to `($1 * 100) / 1000000`%',
'setOwnerCutPerMillion(uint256)': 'Set fees to `@formatPct($1, 1000000)`%',
'transferMarketplaceOwnership(address)':
'Transfer ownership of the marketplace to `$1`',
'transferOwnership(address)': 'Transfer ownership of the contract to `$1`',
Expand Down
4 changes: 2 additions & 2 deletions test/examples/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ const dataDecodeCases = [
source: 'Decentraland: `@radspec(addr, data)`',
bindings: {
addr: address(),
data: bytes('0x19dad16d0000000000000000000000000000000000000000000000000000000000004e20') // setOwnerCutPerMillion(uint256), on decentraland's knownFunctions
data: bytes('0x19dad16d00000000000000000000000000000000000000000000000000000000000061A8') // setOwnerCutPerMillion(uint256), on decentraland's knownFunctions
}
}, 'Decentraland: Set marketplace fees to 2%'],
}, 'Decentraland: Set fees to 2.5%'],
[{
source: 'Decentraland: `@radspec(addr, data)`',
bindings: {
Expand Down

0 comments on commit b3d15f7

Please sign in to comment.