Skip to main content
added 147 characters in body
Source Link
Sky
  • 2.4k
  • 2
  • 8
  • 26

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)

NOTE: You should use a solidity optimizer during deployment/compiling contracts (That can lower the contract size by a considerable amount)

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)

NOTE: You should use a solidity optimizer during deployment/compiling contracts (That can lower the contract size by a considerable amount)

added 3 characters in body
Source Link
Sky
  • 2.4k
  • 2
  • 8
  • 26

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use externalexternal Libraries, (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries, (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)
Source Link
Sky
  • 2.4k
  • 2
  • 8
  • 26

It depends a lot on your use case. There are many options. In your case, the size of the contract is huge, so "small" saving tricks will not work. So I propose one of the following.

  1. You might use external Libraries, (You offload some logic there)
  2. You separate logic into two or more contracts.
  3. You might resort to using the Dimond proxy pattern (which allows contracts of unlimited size)