update warnings (#126)

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
Cyrill Leutwiler
2024-11-29 16:23:36 +01:00
committed by GitHub
parent 7c00bbb0fc
commit 3f6cd115ee
2 changed files with 4 additions and 6 deletions
@@ -35,10 +35,9 @@ impl Error {
let message = r#" let message = r#"
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: It looks like you are using 'ecrecover' to validate a signature of a user account. │ │ Warning: It looks like you are using 'ecrecover' to validate a signature of a user account. │
zkSync Era comes with native account abstraction support, therefore it is highly recommended NOT │ Polkadot comes with native account abstraction support, therefore it is highly recommended NOT
│ to rely on the fact that the account has an ECDSA private key attached to it since accounts might│ │ to rely on the fact that the account has an ECDSA private key attached to it since accounts might│
│ implement other signature schemes. │ │ implement other signature schemes. │
│ Read more about Account Abstraction at https://v2-docs.zksync.io/dev/developer-guides/aa.html │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘"# └──────────────────────────────────────────────────────────────────────────────────────────────────┘"#
.to_owned(); .to_owned();
@@ -109,10 +108,9 @@ impl Error {
let message = r#" let message = r#"
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐ ┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: You are checking for 'tx.origin' in your code, which might lead to unexpected behavior. │ │ Warning: You are checking for 'tx.origin' in your code, which might lead to unexpected behavior. │
zkSync Era comes with native account abstraction support, and therefore the initiator of a │ Polkadot comes with native account abstraction support, and therefore the initiator of a
│ transaction might be different from the contract calling your code. It is highly recommended NOT │ │ transaction might be different from the contract calling your code. It is highly recommended NOT │
│ to rely on tx.origin, but use msg.sender instead. │ │ to rely on tx.origin, but use msg.sender instead. │
│ Read more about Account Abstraction at https://v2-docs.zksync.io/dev/developer-guides/aa.html │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘"# └──────────────────────────────────────────────────────────────────────────────────────────────────┘"#
.to_owned(); .to_owned();
@@ -202,8 +202,8 @@ pub enum Name {
/// size of memory, i.e. largest accessed memory index /// size of memory, i.e. largest accessed memory index
MSize, MSize,
/// verbatim instruction with 0 inputs and 0 outputs /// verbatim instruction with 0 inputs and 0 outputs only works in the Yul mode,
/// only works in the Yul mode, so it is mostly used as a tool for extending Yul for zkSync /// so it is mostly used as a tool for extending Yul for PolkaVM
Verbatim { Verbatim {
/// the number of input arguments /// the number of input arguments
input_size: usize, input_size: usize,