Skip to main content
added 16 characters in body
Source Link
Badr Bellaj
  • 18.8k
  • 4
  • 59
  • 75

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string physicalAddress;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string physicalAddress;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string physicalAddress;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

corrected the variable name
Source Link
skarred14
  • 945
  • 1
  • 9
  • 18

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string address;physicalAddress;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string address;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string physicalAddress;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?

Source Link
skarred14
  • 945
  • 1
  • 9
  • 18

Usage of "storage" and "memory" keywords in struct declaration

I have recently ported my code to solidity 0.4.11 and have been noticing some warning errors upon declaring 'string' variables while declaring structs.

struct person {
    string name;
    string address;
}

the warning I have been getting is:

Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence the warning.

Suggestions on how to get rid of this warning? Also I am trying to understand the usage of storage and memory keywords - could anyone help explain the utility patterns of these keywords?