Skip to content

Commit f7d5f9a

Browse files
committed
perf: reduce codesize from tokenURI
1 parent 7e963df commit f7d5f9a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Deployer.evm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ CALLDATALOAD(4) // target
170170
LOG4(MSIZE, MSIZE, 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, MSIZE, CALLER, DUP1)
171171

172172
MSTORE(MSIZE, 0xff000000000000c57cf0a1f923d44527e703f1ad70)
173-
CALLDATALOAD(36)
173+
CALLDATALOAD(36) // salt
174174
SSTORE(ADD(0x10000000000000000000000000000000000000000, DUP3), DUP1) // store salt
175175
MSIZE MSTORE
176176
MSTORE(MSIZE, 0xbcbdfadcc59d9dc57408c9c0b8c471bde38115ed725ac4bbe1308d01651d5d99) // sha3(init.evm)
@@ -219,10 +219,10 @@ tokenuri:
219219

220220
// https://filecoin.blockscout.com/address/0x<tokenid>
221221
MSTORE(MSIZE, 32)
222+
// /address/0x
223+
MSTORE(74, 0x2f616464726573732f3078)
222224
// https://filecoin.blockscout.com
223225
MSTORE(63, 0x5268747470733a2f2f66696c65636f696e2e626c6f636b73636f75742e636f6d)
224-
// /address/0x
225-
MSTORE(95, 0x2f616464726573732f3078000000000000000000000000000000000000000000)
226226
CALLDATALOAD(4) // token
227227
12 // byteIndex
228228
106 // outIndex

0 commit comments

Comments
 (0)