Skip to content

Commit 94de92a

Browse files
committed
eth/erc20_params: use packed struct
This reduces the space efficiency. Before: 756400 bytes After: 749440 bytes Diff: -6960 bytes
1 parent 7e10114 commit 94de92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rust/bitbox02-rust/src/hww/api/ethereum/erc20_params.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#[repr(packed)]
1516
struct P {
1617
pub unit: *const u8,
1718
pub contract_address: [u8; 20],

0 commit comments

Comments
 (0)