Skip to content

Core Contract Unit tests#73

Merged
Oghma merged 10 commits intostellarfrom
test/core-contract-tests
Mar 26, 2026
Merged

Core Contract Unit tests#73
Oghma merged 10 commits intostellarfrom
test/core-contract-tests

Conversation

@cupicmarko
Copy link
Copy Markdown

No description provided.

@cupicmarko cupicmarko requested review from Oghma and dkgoutham March 2, 2026 07:09
@cupicmarko cupicmarko changed the base branch from main to stellar March 2, 2026 07:09
let emitter = <Address as TestAddress>::generate(&env);
let res = client.try_post_message(
&emitter,
&123u32,

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.


let res = client.try_post_message(
&emitter,
&123u32,

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.


// `post_message` only accepts contract emitters.
let emitter = contract_id.clone();
let nonce = 7u32;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.
This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.


let emitter = contract_id.clone();
let emitter_bytes32 = address_to_bytes32(&emitter);
let nonce = 9u32;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

let emitter = contract_id.clone();
let res = client.try_post_message(
&emitter,
&1u32,

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

env.mock_all_auths();

let emitter = <Address as TestAddress>::generate(&env);
let nonce = 1u32;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

env.mock_all_auths();

let emitter = contract_id.clone();
let nonce = 42u32;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.
This hard-coded value is used as
a nonce
.
This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

env.mock_all_auths();

let emitter = contract_id.clone();
let nonce = 7u32;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a nonce
.

Copilot Autofix

AI about 2 months ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

@Oghma Oghma merged commit d177ab4 into stellar Mar 26, 2026
31 of 34 checks passed
@Oghma Oghma deleted the test/core-contract-tests branch March 26, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants