Skip to content

Core Contract Unit tests#73

Open
cupicmarko wants to merge 4 commits intostellarfrom
test/core-contract-tests
Open

Core Contract Unit tests#73
cupicmarko wants to merge 4 commits intostellarfrom
test/core-contract-tests

Conversation

@cupicmarko
Copy link

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 3 days 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 3 days 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 3 days 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 3 days 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 3 days 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 3 days 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 3 days 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 3 days 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.

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.

1 participant