Skip to content

Commit

Permalink
Merge pull request #241 from Concordium/fix-contract-parameter-max-le…
Browse files Browse the repository at this point in the history
…ngth

Fix contract parameter max length
  • Loading branch information
limemloh authored Aug 24, 2023
2 parents 5eb8f77 + 3041541 commit f82cbcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### Fixes

- The max smart contract parameter length was changed to 65535 bytes in protocol version 5 and onwards.
Functions which checks the parameter length will now reflect that.

## 9.1.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/contractHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Buffer } from 'buffer/';
import { ContractAddress, InstanceInfo } from './types';

const CONTRACT_PARAM_MAX_LENGTH = 1024;
const CONTRACT_PARAM_MAX_LENGTH = 65535;

/**
* Gets the contract name from an {@link InstanceInfo} object.
Expand Down

0 comments on commit f82cbcc

Please sign in to comment.